app

package
v0.0.0-...-1123295 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServeMux

func NewServeMux() *http.ServeMux

Types

type CheckList

type CheckList struct {
	Network []Configure
}

func NewCheckList

func NewCheckList(cfg *config.YAML) (CheckList, error)

type Checker

type Checker struct {
	// contains filtered or unexported fields
}

func NewChecker

func NewChecker(list CheckList, logger *zap.Logger) *Checker

func (*Checker) Run

func (c *Checker) Run(ctx context.Context)

type Configure

type Configure struct {
	Interface string
	Network   string
	Address   string
	Timeout   *time.Duration
	Timer     *time.Duration
}

func (Configure) GetTimeout

func (c Configure) GetTimeout() time.Duration

func (Configure) GetTimer

func (c Configure) GetTimer() time.Duration

Jump to

Keyboard shortcuts

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