Documentation ¶
Index ¶
- func Action(action string, data map[string]interface{})
- func Close()
- func Done(work_id string)
- func Event(event, _group string, data map[string]interface{})
- func Publish(clientId, channel string, data map[string]interface{}) error
- func Rejected(work_id string)
- func Stack(channel string, f func(CreatedEvenMessage)) (err error)
- func Subscribe(channel string, f func(CreatedEvenMessage)) (err error)
- func Work(work, work_id string, data map[string]interface{})
- func Working(worker, work_id string)
- type Conn
- type CreatedEvenMessage
- type Message
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Stack ¶
func Stack(channel string, f func(CreatedEvenMessage)) (err error)
func Subscribe ¶
func Subscribe(channel string, f func(CreatedEvenMessage)) (err error)
Types ¶
type CreatedEvenMessage ¶
type CreatedEvenMessage struct { Created_at time.Time `json:"created_at"` Id string `json:"id"` ClientId string `json:"client_id"` Channel string `json:"channel"` Data map[string]interface{} `json:"data"` }
func (CreatedEvenMessage) ToString ¶
func (m CreatedEvenMessage) ToString() string
func (CreatedEvenMessage) Type ¶
func (m CreatedEvenMessage) Type() string
Click to show internal directories.
Click to hide internal directories.