conn

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2018 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TLSConfig

func TLSConfig(certPemPath, keyPemPath, caCertPath string) (*tls.Config, error)

TLSConfig generates and returns a TLS configuration based on the given parameters. If certPemPath is empty, no Certificate is set on the config. If caCertPath is empty, no trust root is established and no client/serv verification is performed.

Types

type PktType

type PktType byte

PktType represents the type of a packet on the wire.

const (
	PktUnknown PktType = iota
	PktIPPkt
	PktLocalAddr
)

Packet types

Jump to

Keyboard shortcuts

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