2022-07-06 21:51:00 +02:00

22 lines
368 B
Go

package threadmodels
import (
"context"
)
type Thread interface {
ID() string
Heads() []string
MaybeHeads() []string
GetChange(ctx context.Context, recordID string) (*RawChange, error)
SetHeads(heads []string)
SetMaybeHeads(heads []string)
AddChange(change *RawChange) error
}
type RawChange struct {
Payload []byte
Signature []byte
Id string
}