network

package
v0.0.0-...-c57407d Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2021 License: BSD-2-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Network

type Network interface {
	// set up initial network connection
	Setup() error
	// make new listener
	Listen(network, addr string) (net.Listener, error)
	// get reverse dns for an address
	ReverseDNS(c context.Context, addr string) ([]string, error)
	// get forward dns for an address
	ForwardDNS(c context.Context, h string) ([]net.Addr, error)
	// get pub/priv addresses
	GetPublicPrivateAddrs(reverse, forward string) (string, string)
	// get public address for listener
	PublicAddr(c context.Context, l net.Listener) (string, error)
}

Jump to

Keyboard shortcuts

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