knocker

package
v0.0.0-...-0f4c0fd Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckTTLsEverySeconds

func CheckTTLsEverySeconds()

func ReadConfig

func ReadConfig() error

func StartServer

func StartServer(listenAddress string, openPort string, ttl int64) (net.Listener, error)

func StartServers

func StartServers() ([]net.Listener, error)

func StopAllTTLs

func StopAllTTLs()

Types

type PortConfig

type PortConfig struct {
	ListenAddress string `json:"knock_listen_address"`
	OpenPort      string `json:"open_port"`
	TTL           int    `json:"ttl"`
}

type TTLInformation

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

Jump to

Keyboard shortcuts

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