Documentation
¶
Index ¶
- Constants
- func CreateSchema(ctx context.Context, pool *pgxpool.Pool) error
- func DropSchema(ctx context.Context, pool *pgxpool.Pool) error
- type Storage
- func (s Storage) Drop(ctx context.Context, streamID uuid.UUID) error
- func (s Storage) Load(ctx context.Context, streamID uuid.UUID) (*stream.Stream, error)
- func (s Storage) NewStream() *stream.Stream
- func (s Storage) Persist(ctx context.Context, ss *stream.Stream) (err error)
- func (s Storage) StreamName() string
- type StorageOption
Constants ¶
View Source
const Schema = `` /* 1036-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func (Storage) StreamName ¶
type StorageOption ¶
type StorageOption func(*Storage)
func WithCodec ¶
func WithCodec(c event.Encoding) StorageOption
func WithJournal ¶
func WithJournal() StorageOption
Click to show internal directories.
Click to hide internal directories.