Documentation ¶
Index ¶
- Constants
- Variables
- func AsyncReport(c core.Config, topic string, value sarama.Encoder) error
- func SyncReport(c core.Config, topic string, value sarama.Encoder) error
- type Client
- type CollectorService
- type CollectorServiceFactory
- type Metric
- type Node
- type Publish
- type Session
- type Stats
- type Subscription
Constants ¶
View Source
const ( TopicNameNode = "/cluster/nodes" TopicNameClient = "/cluster/clients" TopicNameSession = "/cluster/sessions" TopicNameSubscription = "/cluster/subscriptions" TopicNamePublish = "/cluster/publish" TopicNameMetric = "/cluster/metrics" TopicNameStats = "/cluster/stats" )
View Source
const ( ObjectActionRegister = "register" ObjectActionUnregister = "unregister" ObjectActionRetrieve = "retrieve" ObjectActionDelete = "delete" ObjectActionUpdate = "update" )
Variables ¶
View Source
var Configs = map[string]string{}
Functions ¶
Types ¶
type Client ¶
type Client struct { ClientId string `json:"clientId"` UserName string `json:"userName"` IpAddress string `json:"ipAddress"` Port uint16 `json:"port"` CleanSession bool `json:"cleanSession"` ProtocolVersion string `json:"protocolVersion"` Keepalive uint16 `json:"keepalive"` ConnectedAt string `json:"connectedAt"` // contains filtered or unexported fields }
Client
type CollectorService ¶
type CollectorService struct {
// contains filtered or unexported fields
}
type Metric ¶
type Metric struct { Action string `json:"action"` NodeName string `json:"nodeName"` Service string `json:"service"` Values map[string]uint64 `json:"values"` UpdateTime time.Time `json:"updateTime"` // contains filtered or unexported fields }
Metric
type Node ¶
type Node struct { NodeName string `json:"nodeName"` NodeIp string `json:"nodeIp"` Version string `json:"version"` CreatedAt string `json:"createdAt"` NodeStatus string `json:"nodeStatus"` Action string `json:"action"` // contains filtered or unexported fields }
Node
type Publish ¶
type Publish struct { ClientId string `json:"clientId"` Topic string `json:"topic"` ProductId string `json:"product"` // contains filtered or unexported fields }
Publish
type Session ¶
type Session struct { Action string `json:"action"` ClientId string `json:"clientId"` CleanSession bool `json:"cleanSession"` MessageMaxInflight uint64 `json:"messageMaxInflight"` MessageInflight uint64 `json:"messageInflight"` MessageInQueue uint64 `json:"messageInQueue"` MessageDropped uint64 `json:"messageDropped"` AwaitingRel uint64 `json:"awaitingRel"` AwaitingComp uint64 `json:"awaitingComp"` AwaitingAck uint64 `json:"awaitingAck"` CreatedAt string `json:"createdAt"` // contains filtered or unexported fields }
Session
type Stats ¶
type Stats struct { NodeName string `json:"nodeName"` Service string `json:"service"` Action string `json:"action"` UpdateTime time.Time `json:"updateTime"` Values map[string]uint64 `json:"values"` // contains filtered or unexported fields }
Stat
Click to show internal directories.
Click to hide internal directories.