tcp

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultTCPPort = 80

DefaultTCPPort is the well-known port for generic TCP probes.

View Source
const ProtocolName = "tcp"

ProtocolName is the registered name for the TCP protocol.

Variables

This section is empty.

Functions

This section is empty.

Types

type TCP

type TCP struct{}

TCP implements a generic TCP dial-and-close probe. It measures connection latency without sending any application data.

func (*TCP) DefaultPort

func (t *TCP) DefaultPort() int

func (*TCP) Description

func (t *TCP) Description() string

func (*TCP) Greet

func (t *TCP) Greet(ctx context.Context, host string, port int, opts ...greet.GreetOption) (*greet.GreetResult, error)

func (*TCP) Name

func (t *TCP) Name() string

func (*TCP) Transport

func (t *TCP) Transport() greet.Transport

Jump to

Keyboard shortcuts

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