detailsprober

package
v0.35.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrQueryTimeout     = errors.New("query timeout")
	ErrQueryFailed      = errors.New("failed to query server")
	ErrParseFailed      = errors.New("failed to parse server query response")
	ErrValidationFailed = errors.New("failed to validate server query response")
)

Functions

This section is empty.

Types

type DetailsProber

type DetailsProber struct {
	// contains filtered or unexported fields
}

func New

func New(
	validate *validator.Validate,
	clock clockwork.Clock,
	metrics *metrics.Collector,
	logger *zerolog.Logger,
) DetailsProber

func (DetailsProber) HandleFailure

func (p DetailsProber) HandleFailure(svr server.Server) server.Server

func (DetailsProber) HandleRetry

func (p DetailsProber) HandleRetry(svr server.Server) server.Server

func (DetailsProber) HandleSuccess

func (p DetailsProber) HandleSuccess(result any, svr server.Server) server.Server

func (DetailsProber) Probe

func (p DetailsProber) Probe(
	ctx context.Context,
	svrAddr addr.Addr,
	queryPort int,
	timeout time.Duration,
) (any, error)

Probe probes specified server's GS1 query port On success, update the server's extended params In case a server with specified identifier does not exit, create the server beforehand

Jump to

Keyboard shortcuts

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