Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up[WIP] Miner support MQTT protocol #357
Conversation
| @@ -106,6 +106,14 @@ type DNSSeed struct { | |||
| BPCount int `yaml:"BPCount"` | |||
| } | |||
|
|
|||
| type MQTTBrokerInfo struct { | |||
This comment has been minimized.
This comment has been minimized.
covenantdb
Jun 21, 2019
[golint] reported by reviewdog
exported type MQTTBrokerInfo should have comment or be unexported
| @@ -1020,6 +1020,10 @@ func (c *Chain) AddResponse(resp *types.SignedResponseHeader) (err error) { | |||
| return c.ai.addResponse(c.rt.getHeightFromTime(resp.GetRequestTimestamp()), resp) | |||
| } | |||
|
|
|||
| func (c *Chain) GetPeerLeaderID() proto.NodeID { | |||
This comment has been minimized.
This comment has been minimized.
covenantdb
Jun 21, 2019
[golint] reported by reviewdog
exported method Chain.GetPeerLeaderID should have comment or be unexported
| "github.com/gogf/gf/g/container/gqueue" | ||
| ) | ||
|
|
||
| type MQTTAPI string |
This comment has been minimized.
This comment has been minimized.
covenantdb
Jun 21, 2019
[golint] reported by reviewdog
exported type MQTTAPI should have comment or be unexported
| type MQTTAPI string | ||
|
|
||
| const ( | ||
| //Publish API |
This comment has been minimized.
This comment has been minimized.
covenantdb
Jun 21, 2019
[golint] reported by reviewdog
comment on exported const MQTTNewest should be of the form "MQTTNewest ..."
| const ( | ||
| //Publish API | ||
| MQTTNewest MQTTAPI = "newest" | ||
| DSNList MQTTAPI = "dsnlist" |
This comment has been minimized.
This comment has been minimized.
covenantdb
Jun 21, 2019
[golint] reported by reviewdog
exported const DSNList should have comment (or a comment on this block) or be unexported
| type SubscribeEvent struct { | ||
| ClientID proto.NodeID | ||
| DatabaseID proto.DatabaseID | ||
| ApiName MQTTAPI |
This comment has been minimized.
This comment has been minimized.
| Payload BrokerPayload | ||
| } | ||
|
|
||
| type MQTTClient struct { |
This comment has been minimized.
This comment has been minimized.
covenantdb
Jun 21, 2019
[golint] reported by reviewdog
exported type MQTTClient should have comment or be unexported
| return dests | ||
| } | ||
|
|
||
| func NewMQTTClient(config *conf.MQTTBrokerInfo, dbms *DBMS) (c *MQTTClient) { |
This comment has been minimized.
This comment has been minimized.
covenantdb
Jun 21, 2019
[golint] reported by reviewdog
exported function NewMQTTClient should have comment or be unexported
| } | ||
| } | ||
|
|
||
| func (c *MQTTClient) PublishDSN(apiName MQTTAPI, databaseID proto.DatabaseID, payload BrokerPayload, requestClient proto.NodeID) error { |
This comment has been minimized.
This comment has been minimized.
covenantdb
Jun 21, 2019
[golint] reported by reviewdog
exported method MQTTClient.PublishDSN should have comment or be unexported
| return nil | ||
| } | ||
|
|
||
| func (c *MQTTClient) Close() { |
This comment has been minimized.
This comment has been minimized.
covenantdb
Jun 21, 2019
[golint] reported by reviewdog
exported method MQTTClient.Close should have comment or be unexported

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.

laodouya commentedJun 21, 2019
No description provided.