Documentation
¶
Overview ¶
Package event provides a basic API for app modules to emit events.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attribute ¶ added in v0.6.0
type Attribute = appdata.EventAttribute
Attribute is a kv-pair event attribute.
type Event ¶ added in v1.0.0
Event defines how an event will emitted
type Events ¶ added in v1.0.0
Events represents a list of events.
type Manager ¶ added in v0.6.0
type Manager interface { // Emit emits events represented as a protobuf message (as described in ADR 032). // // Callers SHOULD assume that these events will not be included in consensus. Emit(event transaction.Msg) error // EmitKV emits an event based on an event and kv-pair attributes. // // These events will not be part of consensus and adding, removing or changing these events is // not a state-machine breaking change. EmitKV(eventType string, attrs ...Attribute) error }
Manager represents an event manager which can emit events.
Click to show internal directories.
Click to hide internal directories.