service

package
v1.7.29 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNotFound added in v1.2.0

func IsNotFound(err error) bool

func IsTimeout added in v1.2.0

func IsTimeout(err error) bool

func NewNotFoundError added in v1.2.0

func NewNotFoundError(err error) error

func NewTimeoutError added in v1.2.0

func NewTimeoutError(err error) error

Types

type HealthCheck

type HealthCheck interface {
	Do(ctx context.Context, nodeName string) (bool, error)
}

type NotFoundError added in v1.2.0

type NotFoundError struct {
	Err error
}

func (*NotFoundError) Error added in v1.2.0

func (e *NotFoundError) Error() string

func (*NotFoundError) Unwrap added in v1.2.0

func (e *NotFoundError) Unwrap() error

type TimeoutError added in v1.2.0

type TimeoutError struct {
	Err error
}

func (*TimeoutError) Error added in v1.2.0

func (e *TimeoutError) Error() string

func (*TimeoutError) Unwrap added in v1.2.0

func (e *TimeoutError) Unwrap() error

Jump to

Keyboard shortcuts

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