tcpchecker

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(name string, address string, port int, reporter Reporter)

Types

type Report

type Report struct {
	Name    string
	Address string
	Port    int
	Open    bool
	Content string
	Status  string
	Error   error
}

type Reporter

type Reporter interface {
	ReportPortCheck(report Report)
}

func CompositeReporter

func CompositeReporter(reporters ...Reporter) Reporter

func LogReporter

func LogReporter(logger log.Logger) Reporter

Jump to

Keyboard shortcuts

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