Documentation ¶
Index ¶
- type Event
- func (*Event) Descriptor() ([]byte, []int)
- func (*Event) ProtoMessage()
- func (m *Event) Reset()
- func (m *Event) String() string
- func (m *Event) XXX_DiscardUnknown()
- func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Event) XXX_Merge(src proto.Message)
- func (m *Event) XXX_Size() int
- func (m *Event) XXX_Unmarshal(b []byte) error
- type Filter
- type Listener
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct { // Hash is a unique hash to identify event. Hash github_com_mesg_foundation_engine_hash.Hash `` /* 148-byte string literal not displayed */ // instanceHash is hash of instance that can proceed an execution. InstanceHash github_com_mesg_foundation_engine_hash.Hash `` /* 169-byte string literal not displayed */ // key is the key of the event. Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty" hash:"name:3" validate:"required,printascii"` // data is the data for the event. Data *types.Struct `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty" hash:"name:4"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Event represents a single event run in engine.
func (*Event) Descriptor ¶ added in v0.14.0
func (*Event) ProtoMessage ¶ added in v0.14.0
func (*Event) ProtoMessage()
func (*Event) XXX_DiscardUnknown ¶ added in v0.14.0
func (m *Event) XXX_DiscardUnknown()
func (*Event) XXX_Marshal ¶ added in v0.14.0
func (*Event) XXX_Unmarshal ¶ added in v0.14.0
type Filter ¶ added in v0.19.0
Filter store fileds for matching events.
type Listener ¶ added in v0.19.0
type Listener struct { C chan *Event // contains filtered or unexported fields }
Listener provides functionalities to listen MESG events.
func NewListener ¶ added in v0.19.0
NewListener creates a new Listener with given sdk and filters.
Click to show internal directories.
Click to hide internal directories.