2022-07-05 11:59:01 +02:00

22 lines
403 B
Go

package threadmodels
import (
"context"
"github.com/gogo/protobuf/proto"
)
type Thread interface {
ID() string
Heads() []string
GetChange(ctx context.Context, recordID string) (*RawChange, error)
//SetHeads(heads []string)
//AddChanges(*pb.ACLChange)
PushChange(payload proto.Marshaler) (id string, err error)
}
type RawChange struct {
Payload []byte
Signature []byte
Id string
}