Versions in this module Expand all Collapse all v0 v0.1.1 Feb 21, 2022 v0.1.0 Feb 21, 2022 Changes in this version + func Cancel(err error) error + func DoRetry(minDelay, maxDelay time.Duration, fn func() error) error + func DoRetryAttempts(minDelay, maxDelay time.Duration, attempts int, fn func() error) error + type Agent struct + BlockProfile bool + CPUProfile bool + CPUProfileDuration time.Duration + GoroutineProfile bool + HeapProfile bool + MutexProfile bool + ThreadcreateProfile bool + func New(addr, service string, opts ...Option) *Agent + func Start(addr, service string, opts ...Option) (*Agent, error) + func (a *Agent) Start(ctx context.Context) error + func (a *Agent) Stop() error + type Option func(a *Agent) + func WithBlockProfile() Option + func WithCPUProfile(duration time.Duration) Option + func WithGoroutineProfile() Option + func WithHTTPClient(c *http.Client) Option + func WithHeapProfile() Option + func WithLabels(args ...string) Option + func WithLogger(logf func(string, ...interface{})) Option + func WithMutexProfile() Option + func WithThreadcreateProfile() Option + func WithTickInterval(tick time.Duration) Option + type Retry struct + MaxAttempts int + MaxDelay time.Duration + MinDelay time.Duration + func (r *Retry) Check(err error) (bool, error) + func (r *Retry) Do(fn func() error) (err error)