Documentation ¶
Index ¶
- func Cancel(err error) error
- func Do(minDelay, maxDelay time.Duration, fn func() error) error
- func DoAttempts(minDelay, maxDelay time.Duration, attempts int, fn func() error) error
- type Agent
- type Option
- 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(interval time.Duration) Option
- func WithTraceProfile(duration time.Duration) Option
- type Retry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Agent ¶
type Option ¶
type Option func(a *Agent)
func WithBlockProfile ¶
func WithBlockProfile() Option
func WithCPUProfile ¶
func WithGoroutineProfile ¶
func WithGoroutineProfile() Option
func WithHTTPClient ¶
func WithHeapProfile ¶
func WithHeapProfile() Option
func WithLabels ¶
func WithLogger ¶
func WithMutexProfile ¶
func WithMutexProfile() Option
func WithThreadcreateProfile ¶
func WithThreadcreateProfile() Option
func WithTickInterval ¶
func WithTraceProfile ¶
Click to show internal directories.
Click to hide internal directories.