Documentation
¶
Index ¶
- Constants
- Variables
- type ApplyStoreOptionFunc
- type Store
- func (s *Store) Delete(_ context.Context, _ ...event.Event) error
- func (s *Store) Find(_ context.Context, _ uuid.UUID) (event.Event, error)
- func (s *Store) Insert(ctx context.Context, evts ...event.Event) error
- func (s *Store) Query(ctx context.Context, q event.Query) (<-chan event.Event, <-chan error, error)
- type StoreOption
Constants ¶
View Source
const ( MetadataKeyEventName = "event-name" MetadataKeyEventTime = "event-time" MetadataKeyEventAggregateName = "aggregate-name" MetadataKeyEventAggregateId = "aggregate-id" MetadataKeyEventAggregateVersion = "aggregate-version" )
Event metadata keys
Variables ¶
View Source
var ( ErrLeaseLocked = errors.New("lease is currently locked") ErrValidationVersionMismatch = errors.New("validation version mismatch") )
Error
Functions ¶
This section is empty.
Types ¶
type ApplyStoreOptionFunc ¶ added in v0.0.22
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
type StoreOption ¶ added in v0.0.22
type StoreOption interface {
// contains filtered or unexported methods
}
func WithLogger ¶ added in v0.0.22
func WithLogger(o *zap.SugaredLogger) StoreOption
func WithPullExpiry ¶ added in v0.0.22
func WithPullExpiry(o time.Duration) StoreOption
func WithRetryCount ¶ added in v0.0.22
func WithRetryCount(o uint) StoreOption
func WithVersionKV ¶ added in v0.0.27
func WithVersionKV(o kv.KeyValuer[*kv.UInt64Value]) StoreOption
func WithWriteLeaseKV ¶ added in v0.0.26
func WithWriteLeaseKV(o kv.KeyValuer[*kv.NilValue]) StoreOption
Click to show internal directories.
Click to hide internal directories.