util

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MultiError added in v0.4.0

type MultiError []error

func (MultiError) As added in v0.4.0

func (e MultiError) As(target interface{}) bool

As allows you to use `errors.As()` to set target to the first error within the multi error that matches the target type.

func (MultiError) Error added in v0.4.0

func (e MultiError) Error() string

func (MultiError) Is added in v0.4.0

func (e MultiError) Is(target error) bool

Is allows you to determine if a generic error is in fact a MultiError using `errors.Is()` It will also return true if any of the contained errors match target.

type OnPing added in v0.1.1

type OnPing func(ctx context.Context)

type TickerPinger added in v0.1.1

type TickerPinger interface {
	Start(ctx context.Context)
	Stop()
}

func NewIntervalTickerPinger added in v0.1.1

func NewIntervalTickerPinger(
	interval time.Duration,
	OnPing OnPing,
) TickerPinger

Jump to

Keyboard shortcuts

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