Documentation ¶
Index ¶
- Constants
- type Csender
- func (cs *Csender) AddKeyValue(kv string) error
- func (cs *Csender) AddMultipleKeyValue(kv []string) error
- func (cs *Csender) GracefulSend() error
- func (cs *Csender) Send() (int, error)
- func (cs *Csender) SetAlert(alert string) error
- func (cs *Csender) SetSuccess(success bool) error
- func (cs *Csender) SetVersion(version string)
- func (cs *Csender) SetWarning(warning string) error
Constants ¶
View Source
const HubTimeout = 30 * time.Second
View Source
const MaxKeyLength = 100
View Source
const MaxValueLength = 500
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Csender ¶
type Csender struct { HubURL string HubToken string HubGzip bool CheckName string Verbose bool RetryLimit int Timeout time.Duration // contains filtered or unexported fields }
func (*Csender) AddKeyValue ¶
func (*Csender) AddMultipleKeyValue ¶
func (*Csender) GracefulSend ¶
GracefulSend sends to hub with retry logic
func (*Csender) SetSuccess ¶
func (*Csender) SetVersion ¶
func (*Csender) SetWarning ¶
Click to show internal directories.
Click to hide internal directories.