Documentation ¶ Index ¶ type Store type Stream func NewStream(id event.StreamID, events event.Stream) *Stream func Wrap(ctx context.Context, stmID event.StreamID, curVer event.Version, events []any) Stream func (s *Stream) Empty() bool func (s *Stream) ID() event.StreamID func (s *Stream) Unwrap() event.Stream func (s *Stream) Validate() error func (s *Stream) Version() event.Version Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Store ¶ type Store interface { AppendToStream(ctx context.Context, chunk Stream, optFns ...func(opt *event.AppendConfig)) error LoadStream(ctx context.Context, id event.StreamID, vrange ...event.Version) (*Stream, error) } type Stream ¶ type Stream struct { // contains filtered or unexported fields } func NewStream ¶ func NewStream(id event.StreamID, events event.Stream) *Stream func Wrap ¶ func Wrap(ctx context.Context, stmID event.StreamID, curVer event.Version, events []any) Stream func (*Stream) Empty ¶ func (s *Stream) Empty() bool func (*Stream) ID ¶ func (s *Stream) ID() event.StreamID func (*Stream) Unwrap ¶ func (s *Stream) Unwrap() event.Stream func (*Stream) Validate ¶ func (s *Stream) Validate() error func (*Stream) Version ¶ func (s *Stream) Version() event.Version Source Files ¶ View all Source files stream.go Click to show internal directories. Click to hide internal directories.