Documentation ¶
Index ¶
- Constants
- func AddSecondMonitor(all NodeMonitorData)
- func PointRPCRequest(module, serviceName string)
- func QueryMonitor(writer http.ResponseWriter, request *http.Request)
- type ConsulData
- type ConsulRegistry
- func (r *ConsulRegistry) ActivateService(writer http.ResponseWriter, request *http.Request)
- func (r *ConsulRegistry) ConsulList(writer http.ResponseWriter, request *http.Request)
- func (r *ConsulRegistry) DeactivateService(writer http.ResponseWriter, request *http.Request)
- func (r *ConsulRegistry) InitRegistry()
- func (r *ConsulRegistry) PauseService(writer http.ResponseWriter, request *http.Request)
- type KeyValueMonitor
- type MetaData
- type MonitorData
- type MonitorItem
- type NodeMonitorData
Constants ¶
View Source
const ( TimeGroup10 = 10 TimeGroup50 = 51 TimeGroup100 = 102 TimeGroup300 = 303 TimeGroupMax = 1 << 30 )
View Source
const (
ServiceMonitor = "service_monitor"
)
Variables ¶
This section is empty.
Functions ¶
func AddSecondMonitor ¶
func AddSecondMonitor(all NodeMonitorData)
func PointRPCRequest ¶
func PointRPCRequest(module, serviceName string)
func QueryMonitor ¶
func QueryMonitor(writer http.ResponseWriter, request *http.Request)
Types ¶
type ConsulData ¶
type ConsulRegistry ¶
type ConsulRegistry struct { StateCallBack func(name, address string, state client.ConsulServerState) // contains filtered or unexported fields }
func (*ConsulRegistry) ActivateService ¶
func (r *ConsulRegistry) ActivateService(writer http.ResponseWriter, request *http.Request)
func (*ConsulRegistry) ConsulList ¶
func (r *ConsulRegistry) ConsulList(writer http.ResponseWriter, request *http.Request)
func (*ConsulRegistry) DeactivateService ¶
func (r *ConsulRegistry) DeactivateService(writer http.ResponseWriter, request *http.Request)
func (*ConsulRegistry) InitRegistry ¶
func (r *ConsulRegistry) InitRegistry()
func (*ConsulRegistry) PauseService ¶
func (r *ConsulRegistry) PauseService(writer http.ResponseWriter, request *http.Request)
type KeyValueMonitor ¶
type KeyValueMonitor struct {
// contains filtered or unexported fields
}
func (*KeyValueMonitor) Inr ¶
func (s *KeyValueMonitor) Inr()
type MonitorData ¶
type MonitorData struct { Group string `json:"group"` Values []MonitorItem `json:"values"` }
type MonitorItem ¶
type NodeMonitorData ¶
type NodeMonitorData struct { NodeId string `json:"nodeId"` Data []MonitorData `json:"data"` }
func AllMonitor ¶
func AllMonitor() NodeMonitorData
Click to show internal directories.
Click to hide internal directories.