fqdnservice

package
v0.0.0-...-be2ef80 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FqdnService

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

func NewFqdnService

func NewFqdnService(log logger.Logger, timeout time.Duration) *FqdnService

func (*FqdnService) CheckFqdnReachability

func (fq *FqdnService) CheckFqdnReachability(req models.FqdnRequest, port string, duration time.Duration) models.FqdnResponse

func (*FqdnService) MakeConcurrentCalls

func (fq *FqdnService) MakeConcurrentCalls(url string, client *http.Client, setNodes map[string]int, duration time.Duration) error

makeConcurrentCalls function is making 50 concurrent calls for checking node reachability.

type IFqdnService

type IFqdnService interface {
	CheckFqdnReachability(models.FqdnRequest, string, time.Duration) models.FqdnResponse
}

type MockFqdnService

type MockFqdnService struct {
	CheckFqdnReachabilityFunc func(models.FqdnRequest, string, time.Duration) models.FqdnResponse
}

func (*MockFqdnService) CheckFqdnReachability

func (mfq *MockFqdnService) CheckFqdnReachability(req models.FqdnRequest, port string, duration time.Duration) models.FqdnResponse

Jump to

Keyboard shortcuts

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