sourcing

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL