2022-07-08 10:52:06 +02:00

10 lines
236 B
Go

package exampledocument
type DocumentState interface {
ApplyChange(change []byte, id string) (DocumentState, error)
}
type InitialStateProvider interface {
ProvideFromInitialChange(change []byte, id string) (DocumentState, error)
}