Documentation
¶
Index ¶
Constants ¶
View Source
const ( ActionUDP = "udp" ActionAck = "ack" ActionDataback = "databack" ActionSubscribe = "subscribe" ActionUnsubscribe = "unsubscribe" ActionPing = "ping" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AckAction ¶
type AckAction struct { AgentProtocol Status string `json:"status"` Data any `json:"data,omitempty"` }
type AgentProtocol ¶
type DatabackAction ¶
type DatabackAction struct { AgentProtocol Type string `json:"type"` Data any `json:"data,omitempty"` }
func NewDataBackAction ¶
func NewDataBackAction(tp string, data any) *DatabackAction
type PingAction ¶
type PingAction struct {
AgentProtocol
}
func NewPingAction ¶
func NewPingAction() *PingAction
type SubscribeAction ¶
type SubscribeAction struct { AgentProtocol Type string `json:"type"` Rules []string `json:"rules"` }
type UDPAction ¶
type UnsubscribeAction ¶
type UnsubscribeAction struct { AgentProtocol Type string `json:"type"` Rules []string `json:"rules"` }
Click to show internal directories.
Click to hide internal directories.