autonat

package
v0.0.0-...-8b9b725 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2019 License: MIT, MIT Imports: 14 Imported by: 6

README

go-libp2p-autonat-svc

standard-readme compliant

AutoNAT service implementation

This package provides an implementation of the AutoNATService; see autonat.

Documentation

See https://godoc.org/github.com/libp2p/go-libp2p-autonat-svc.

Contribute

Feel free to join in. All welcome. Open an issue!

This repository falls under the IPFS Code of Conduct.

License

MIT

Documentation

Index

Constants

View Source
const P_CIRCUIT = 290

Variables

View Source
var (
	AutoNATServiceDialTimeout   = 42 * time.Second
	AutoNATServiceResetInterval = 1 * time.Minute

	AutoNATServiceThrottle = 3
)

Functions

This section is empty.

Types

type AutoNATService

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

AutoNATService provides NAT autodetection services to other peers

func NewAutoNATService

func NewAutoNATService(ctx context.Context, h host.Host, opts ...libp2p.Option) (*AutoNATService, error)

NewAutoNATService creates a new AutoNATService instance attached to a host

Jump to

Keyboard shortcuts

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