finding

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func NewService

func NewService(
	servers servers.Repository,
	queue *probe.Service,
	logger *zerolog.Logger,
) *Service

func (*Service) DiscoverDetails

func (s *Service) DiscoverDetails(
	ctx context.Context,
	addr addr.Addr,
	queryPort int,
	deadline time.Time,
) error

func (*Service) DiscoverPort

func (s *Service) DiscoverPort(
	ctx context.Context,
	addr addr.Addr,
	countdown time.Time,
	deadline time.Time,
) error

func (*Service) RefreshDetails added in v0.3.0

func (s *Service) RefreshDetails(
	ctx context.Context,
	deadline time.Time,
) (int, error)

func (*Service) ReviveServers added in v0.3.0

func (s *Service) ReviveServers(
	ctx context.Context,
	minScope time.Time,
	maxScope time.Time,
	minCountdown time.Time,
	maxCountdown time.Time,
	deadline time.Time,
) (int, error)

Jump to

Keyboard shortcuts

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