reportserver

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidRequestPayload = errors.New("invalid request payload")

Functions

This section is empty.

Types

type Request

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

func NewRequest

func NewRequest(
	svrAddr addr.Addr,
	queryPort int,
	instanceID string,
	fields map[string]string,
) Request

type UseCase

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

func New

func New(
	serverRepo repositories.ServerRepository,
	instanceRepo repositories.InstanceRepository,
	probeRepo repositories.ProbeRepository,
	opts UseCaseOptions,
	validate *validator.Validate,
	metrics *metrics.Collector,
	clock clockwork.Clock,
	logger *zerolog.Logger,
) UseCase

func (UseCase) Execute

func (uc UseCase) Execute(ctx context.Context, req Request) error

type UseCaseOptions added in v0.14.0

type UseCaseOptions struct {
	MaxProbeRetries int
}

Jump to

Keyboard shortcuts

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