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"` }
func NewSubscribeAction ¶ added in v1.2.7
func NewSubscribeAction(tp string, rules []string) *SubscribeAction
type UDPAction ¶
type UnsubscribeAction ¶
type UnsubscribeAction struct { AgentProtocol Type string `json:"type"` Rules []string `json:"rules"` }
func NewUnsubscribeAction ¶ added in v1.2.7
func NewUnsubscribeAction(tp string, rules []string) *UnsubscribeAction
Click to show internal directories.
Click to hide internal directories.