Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Unknown is an unknown report and should always be treated as an error. Unknown reportType = iota // Once will perform a Once report against the agent. Once // Poll will perform a Periodic report against the agent. Periodic // Stream will perform a Streaming report against the agent. Stream )
Variables ¶
Functions ¶
func DialOutRun ¶
func DialOutRun(ctx context.Context, ccfg *ClientConfig) error
read configDB data for telemetry client and start publishing service for client subscription
func NewReportType ¶
func NewReportType(s string) reportType
NewType returns a new reportType based on the provided string.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client handles execution of the telemetry publish service.
type ClientConfig ¶
type ClientConfig struct { SrcIp string RetryInterval time.Duration Encoding gpb.Encoding Unidirectional bool // by default, no reponse from remote server TLS *tls.Config // TLS config to use when connecting to target. Optional. RedisConType string // "unix" or "tcp" }
Global config for all clients
type Destination ¶
type Destination struct {
Addrs string
}
func (Destination) Validate ¶
func (d Destination) Validate() error
Click to show internal directories.
Click to hide internal directories.