Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MissingTypeError = fmt.Errorf("event type is missing")
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder[DT any] interface { WithId(id uuid.UUID) builder[DT] WithType(t Type) builder[DT] WithData(data DT) builder[DT] WithMetadata(data Metadata) builder[DT] Build() (ev Event[DT], err error) BuildStore() (ev StoreEvent, err error) }
func NewBuilder ¶
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"` }
type StoreEvent ¶ added in v0.4.0
Click to show internal directories.
Click to hide internal directories.