mirror of
https://github.com/fhmq/hmq.git
synced 2026-04-24 10:38:34 +00:00
* modify * update * add acl * add feature * update dockerfile * add deploy * update * update * plugins * plugins * update * update * update * fixed * remove * fixed * add log * update * fixed * update * fix config * add http api * add http api * resp * add config for work chan * update * fixed * update * disable trace * fixed * change acl * fixed * fixed res * dd * dd * ddd * dd * update * fixed * update * add * fixed * update key * add log * update * format * update * update auth * update * update readme * added * update * fixed * fixed * fix * upade * update * update
26 lines
570 B
Go
26 lines
570 B
Go
package plugins
|
|
|
|
const (
|
|
//Connect mqtt connect
|
|
Connect = "connect"
|
|
//Publish mqtt publish
|
|
Publish = "publish"
|
|
//Subscribe mqtt sub
|
|
Subscribe = "subscribe"
|
|
//Unsubscribe mqtt sub
|
|
Unsubscribe = "unsubscribe"
|
|
//Disconnect mqtt disconenct
|
|
Disconnect = "disconnect"
|
|
)
|
|
|
|
//Elements kafka publish elements
|
|
type Elements struct {
|
|
ClientID string `json:"clientid"`
|
|
Username string `json:"username"`
|
|
Topic string `json:"topic"`
|
|
Payload string `json:"payload"`
|
|
Timestamp int64 `json:"ts"`
|
|
Size int32 `json:"size"`
|
|
Action string `json:"action"`
|
|
}
|