Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var InvalidTypeError = fmt.Errorf("event type is invalid")
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder interface { WithId(id uuid.UUID) builder WithType(t Type) builder WithData(data []byte) builder WithMetadata(data Metadata) builder BuildRead() (ev ReadEvent, err error) BuildStore() (ev Event, err error) }
func NewBuilder ¶
func NewBuilder() Builder
type Metadata ¶
type Metadata struct { Stream string `json:"stream"` EventType Type `json:"event_type"` Version string `json:"version"` DataType string `json:"data_type"` Key string `json:"key"` //Strictly used for things like getting the cryptoKey Extra map[string]any `json:"extra"` Created time.Time `json:"created"` }
Click to show internal directories.
Click to hide internal directories.