Documentation ¶
Index ¶
- func Close()
- func Done(work_id, event string)
- func Log(event string, data et.Json)
- func Publish(clientId, channel string, data map[string]interface{}) error
- func Rejected(work_id, event string)
- func Stack(channel string, f func(EvenMessage)) (err error)
- func Subscribe(channel string, f func(EvenMessage)) (err error)
- func Test(w http.ResponseWriter, r *http.Request)
- func Work(worker, work_id string, data et.Json)
- func Worker(event string, data et.Json)
- func Working(worker, work_id string)
- type Conn
- type EvenMessage
- type Message
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Done ¶ added in v0.0.56
func Done(work_id, event string)
* * Done * @param work_id string * @param event string *
func Rejected ¶ added in v0.0.66
func Rejected(work_id, event string)
* * Rejected * @param work_id string * @param event string *
func Stack ¶
func Stack(channel string, f func(EvenMessage)) (err error)
Basic function to subscrite kind stack to a channel
func Subscribe ¶
func Subscribe(channel string, f func(EvenMessage)) (err error)
Basic function to subscribe to a channel
func Test ¶ added in v0.0.165
func Test(w http.ResponseWriter, r *http.Request)
* * Test event, testing message broker * @param w http.ResponseWriter * @param r *http.Request *
func Work ¶ added in v0.0.56
* * Work * @param worker string * @param work_id string * @param data et.Json *
Types ¶
type EvenMessage ¶ added in v0.0.177
type EvenMessage 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 (EvenMessage) ToString ¶ added in v0.0.177
func (m EvenMessage) ToString() string
func (EvenMessage) Type ¶ added in v0.0.177
func (m EvenMessage) Type() string
Click to show internal directories.
Click to hide internal directories.