Documentation ¶
Index ¶
- func EventComposer(title string, data interface{}, opts ...Opt) *composer
- type Channel
- type Entity
- type EntityDetail
- type Event
- func (e *Event) DoAck()
- func (e *Event) GetAuthor() *EntityDetail
- func (e *Event) GetChannel() Channel
- func (e *Event) GetData() interface{}
- func (e *Event) GetID() string
- func (e *Event) GetReceiver() *EntityDetail
- func (e *Event) GetTitle() string
- func (e *Event) GetWhen() interface{}
- func (e *Event) SetAck(f func())
- func (e *Event) SetChannel(c Channel)
- func (e Event) String() string
- type Opt
- type Provider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EventComposer ¶
Types ¶
type EntityDetail ¶
type EntityDetail struct { Id string `json:"id"` Name string `json:"name"` Object string `json:"object"` Image *sdkcm.Image `json:"image"` }
func (*EntityDetail) GetId ¶
func (e *EntityDetail) GetId() string
func (*EntityDetail) GetImage ¶
func (e *EntityDetail) GetImage() *sdkcm.Image
func (*EntityDetail) GetName ¶
func (e *EntityDetail) GetName() string
func (*EntityDetail) GetObject ¶
func (e *EntityDetail) GetObject() string
type Event ¶
type Event struct { Id string `json:"id"` Title string `json:"title"` Author *EntityDetail `json:"author"` Receiver *EntityDetail `json:"receiver"` Channel Channel `json:"channel"` Data interface{} `json:"data"` Ack func() CreatedAt time.Time `json:"created_at"` RemoteData []byte `json:"remote_data"` }
func (*Event) GetAuthor ¶
func (e *Event) GetAuthor() *EntityDetail
func (*Event) GetChannel ¶
func (*Event) GetReceiver ¶
func (e *Event) GetReceiver() *EntityDetail
func (*Event) SetChannel ¶
Click to show internal directories.
Click to hide internal directories.