eventstore

package
v2.38.2-0...-94d1eb7 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Eventstore

type Eventstore struct {
	// contains filtered or unexported fields
}

func NewEventstore

func NewEventstore(client *database.DB) *Eventstore

func (*Eventstore) FillFields

func (es *Eventstore) FillFields(ctx context.Context, events ...eventstore.FillFieldsEvent) (err error)

func (*Eventstore) Health

func (es *Eventstore) Health(ctx context.Context) error

func (*Eventstore) Push

func (es *Eventstore) Push(ctx context.Context, commands ...eventstore.Command) (events []eventstore.Event, err error)

func (*Eventstore) Search

func (es *Eventstore) Search(ctx context.Context, conditions ...map[eventstore.FieldType]any) (result []*eventstore.SearchResult, err error)

Search implements the eventstore.Search method

type Payload

type Payload []byte

Payload represents a byte array that may be null. Payload implements the sql.Scanner interface

func (*Payload) Scan

func (data *Payload) Scan(value interface{}) error

Scan implements the Scanner interface.

func (Payload) Value

func (data Payload) Value() (driver.Value, error)

Value implements the driver Valuer interface.

Jump to

Keyboard shortcuts

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