Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Schema ¶
type Schema interface {
WriteEvent(ctx context.Context, db dbtx.DBTX, event es.Event, content, metadata []byte) error
InsertOutbox(ctx context.Context, tx dbtx.DBTX, streamType, streamID, storeStreamID string, eventNumber, watermark int64, partition uint32) (int64, error)
UpdateOutbox(ctx context.Context, tx dbtx.DBTX, streamType, streamID string, eventNumber, lastEventNumber int64) (int64, error)
SelectEvents(ctx context.Context, db dbtx.DBTX, streamType string, streamID string, eventNumber int64) (pgx.Rows, error)
Notify(ctx context.Context, db dbtx.DBTX, partition uint32, payload string) error
}
type ValidatorFunc ¶
type ValidatorFunc func(streamType string, events iter.Seq2[es.Event, error]) iter.Seq2[es.Event, error]
func NewValidator ¶
func NewValidator() ValidatorFunc
Click to show internal directories.
Click to hide internal directories.