kcp

package module
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2020 License: MIT Imports: 15 Imported by: 1

README

libp2p-kcp

The go-libp2p Transport implementation using go-kcp

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInternal = errors.New("the internal error", errors.WithVendor(errVendor), errors.WithCode(-1))
	ErrAddr     = errors.New("invalid libp2p net.addr", errors.WithVendor(errVendor), errors.WithCode(-2))
	ErrClosed   = errors.New("transport closed", errors.WithVendor(errVendor), errors.WithCode(-3))
	ErrTLS      = errors.New("expected remote pub key to be set", errors.WithVendor(errVendor), errors.WithCode(-4))
)

errors

Functions

func New

func New(privkey crypto.PrivKey, options ...Option) (transport.Transport, error)

New create kcp transport

Types

type Option added in v0.0.2

type Option func(kcp *kcpTransport) error

Option transport creation option

func WithTLS added in v0.0.2

func WithTLS() Option

WithTLS create kcp transport with TLS

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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