mucp

package
v1.0.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// DiscoverTime sets the time at which we fire discover messages
	DiscoverTime = 30 * time.Second
	// KeepAliveTime defines time interval we send keepalive messages to outbound links
	KeepAliveTime = 30 * time.Second
	// ReconnectTime defines time interval we periodically attempt to reconnect dead links
	ReconnectTime = 5 * time.Second
)
View Source
var (
	ErrLinkConnectTimeout = errors.New("link connect timeout")
)

Functions

func Decrypt

func Decrypt(gcm cipher.AEAD, data []byte) ([]byte, error)

func Encrypt

func Encrypt(gcm cipher.AEAD, data []byte) ([]byte, error)

Encrypt encrypts data and returns the encrypted data

func NewTunnel

func NewTunnel(opts ...tunnel.Option) *tun

create new tunnel on top of a link

Types

This section is empty.

Jump to

Keyboard shortcuts

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