muxproto

package
v0.0.0-...-626ce36 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2017 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Control

type Control struct {
	Protocol ProtoType
	Endpoint string
}

Control describes a channel in a multiplexed conenction

func (*Control) DecodeMsg

func (c *Control) DecodeMsg(r *msgp.Reader) error

DecodeMsg satisfes msgp.Decodable

func (Control) EncodeMsg

func (c Control) EncodeMsg(w *msgp.Writer) error

EncodeMsg satisfes msgp.Encodable

type ProtoType

type ProtoType int

ProtoType defines the type of proxied traffic

const (
	// TCP - connection delivers TCP traffic
	TCP ProtoType = iota + 1
	// UDP - connection delivers UDP traffic
	UDP
)

Jump to

Keyboard shortcuts

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