Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetMarshaler ¶
func SetMarshaler(fn Marshaler)
func SetUUIDGenerator ¶
func SetUUIDGenerator(fn UUIDGenerator)
func SetUnmarshaler ¶
func SetUnmarshaler(fn Unmarshaler)
Types ¶
type Message ¶
type Message struct { ID uuid.UUID Metadata map[string]string Event *event.Event // contains filtered or unexported fields }
func NewMessage ¶
func NewMessage(evt *event.Event, opts ...MessageOption) *Message
type MessageOption ¶
type MessageOption func(*Message)
func SetMetadata ¶
func SetMetadata(meta map[string]string) MessageOption
func WithMetadata ¶
func WithMetadata(k, v string) MessageOption
type UUIDGenerator ¶
type Unmarshaler ¶
Click to show internal directories.
Click to hide internal directories.