19 lines
328 B
Go
19 lines
328 B
Go
package threadmodels
|
|
|
|
import (
|
|
"context"
|
|
"github.com/gogo/protobuf/proto"
|
|
)
|
|
|
|
type Thread interface {
|
|
ID() string
|
|
GetChange(ctx context.Context, recordID string) (*RawChange, error)
|
|
PushChange(payload proto.Marshaler) (id string, err error)
|
|
}
|
|
|
|
type RawChange struct {
|
|
Payload []byte
|
|
Signature []byte
|
|
Id string
|
|
}
|