csender

package
v0.0.0-...-e06cd52 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 10, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

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 (cs *Csender) AddKeyValue(kv string) error

func (*Csender) AddMultipleKeyValue

func (cs *Csender) AddMultipleKeyValue(kv []string) error

func (*Csender) GracefulSend

func (cs *Csender) GracefulSend() error

GracefulSend sends to hub with retry logic

func (*Csender) Send

func (cs *Csender) Send() (int, error)

Send is used by csender. returns status code, error

func (*Csender) SetAlert

func (cs *Csender) SetAlert(alert string) error

func (*Csender) SetSuccess

func (cs *Csender) SetSuccess(success bool) error

func (*Csender) SetVersion

func (cs *Csender) SetVersion(version string)

func (*Csender) SetWarning

func (cs *Csender) SetWarning(warning string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL