tcp

package
v0.0.0-...-c3423aa Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package tcp is the tcp probe package

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TCP

type TCP struct {
	base.DefaultProbe `yaml:",inline"`
	Host              string `yaml:"host" json:"host" jsonschema:"required,format=hostname,title=Host,description=The host to probe"`
	Proxy             string `yaml:"proxy" json:"proxy,omitempty" jsonschema:"format=hostname,title=Proxy,description=The proxy to use"`
}

TCP implements a config for TCP

func (*TCP) Config

func (t *TCP) Config(gConf global.ProbeSettings) error

Config HTTP Config Object

func (*TCP) DoProbe

func (t *TCP) DoProbe() (bool, string)

DoProbe return the checking result

Jump to

Keyboard shortcuts

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