lokinet

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: 4 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 struct {
	// contains filtered or unexported fields
}

func NewLokiNetwork

func NewLokiNetwork(addr string) *Network

func (*Network) ForwardDNS

func (n *Network) ForwardDNS(ctx context.Context, h string) (found []net.Addr, e error)

func (*Network) GetPublicPrivateAddrs

func (n *Network) GetPublicPrivateAddrs(reverse, forward string) (string, string)

func (*Network) Listen

func (n *Network) Listen(network, addr string) (net.Listener, error)

func (*Network) PublicAddr

func (n *Network) PublicAddr(ctx context.Context, l net.Listener) (string, error)

func (*Network) ReverseDNS

func (n *Network) ReverseDNS(ctx context.Context, a string) ([]string, error)

func (*Network) Setup

func (n *Network) Setup() error

Jump to

Keyboard shortcuts

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