application

package
v1.38.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TCPCheckUsecase

type TCPCheckUsecase interface {
	Run(ctx context.Context, hostname string, port uint32, timeout time.Duration) (*TCPConnectivityCheckResult, error)
}

func NewTCPCheckUsecase

func NewTCPCheckUsecase(client TCPClientPort) TCPCheckUsecase

type TCPClientPort

type TCPClientPort interface {
	CheckConnectivity(ctx context.Context, hostname string, port uint32, timeout time.Duration) (*TCPConnectivityCheckResult, error)
}

type TCPConnectivityCheckResult

type TCPConnectivityCheckResult struct {
	IsOk       bool
	FailReason *pb.TCPCheckFailureReason
}

Jump to

Keyboard shortcuts

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