dialcheck

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HelperInputProxyConfigType = "dialcheck"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Network     string        `json:"network"`
	Host        string        `json:"host"`
	Ports       []int         `json:"ports"`
	Timeout     time.Duration `json:"timeout"`
	Times       int           `json:"times"`
	NetworkMode string        `json:"networkMode"`
}

type Input

type Input struct {
	Config *Config
}

func (*Input) Collect

func (i *Input) Collect(a api.Accumulator) error

func (*Input) ExecuteRequest

func (i *Input) ExecuteRequest(bytes []byte) ([]byte, error)

func (*Input) GenerateErrorMetrics

func (i *Input) GenerateErrorMetrics(a api.Accumulator)

func (*Input) GetDefaultPrefix

func (i *Input) GetDefaultPrefix() string

func (*Input) NetworkMode

func (i *Input) NetworkMode() string

func (*Input) ProcessResponse

func (i *Input) ProcessResponse(_ interface{}, respBytes []byte, err error, accumulator api.Accumulator) error

func (*Input) SerializeRequest

func (i *Input) SerializeRequest() (interface{}, string, []byte, time.Duration, error)

Jump to

Keyboard shortcuts

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