Version: v1.4.2 Latest Latest

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

Go to latest
Published: Aug 10, 2019 License: BSD-3-Clause Imports: 4 Imported by: 48




This section is empty.


View Source
var ErrInvalidFrame = errors.New("invalid frame type")

ErrInvalidFrame is returned when writing invalid frame type.

View Source
var ErrInvalidPacket = errors.New("invalid packet type")

ErrInvalidPacket is returned when writing invalid packet type.


This section is empty.


type Checker added in v1.4.1

type Checker func(*http.Request) (http.Header, error)

Checker is function to check request.

type HTTPError added in v1.4.1

type HTTPError interface {
	Code() int

HTTPError is error which has http response code

type Manager added in v1.4.1

type Manager struct {
	// contains filtered or unexported fields

Manager is a manager of transports.

func NewManager added in v1.4.1

func NewManager(transports []Transport) *Manager

NewManager creates a new manager.

func (*Manager) Get added in v1.4.1

func (m *Manager) Get(name string) Transport

Get returns the transport with given name.

func (*Manager) UpgradeFrom added in v1.4.1

func (m *Manager) UpgradeFrom(name string) []string

UpgradeFrom returns a name list of transports which can upgrade from given name.

type Opener added in v1.4.1

type Opener interface {
	Open() (base.ConnParameters, error)

Opener is client connection which need receive open message first.

type Pauser added in v1.4.1

type Pauser interface {

Pauser is connection which can be paused and resumes.

type Transport added in v1.4.1

type Transport interface {
	Name() string
	Accept(w http.ResponseWriter, r *http.Request) (base.Conn, error)
	Dial(u *url.URL, requestHeader http.Header) (base.Conn, error)

Transport is a transport which can creates base.Conn


Path Synopsis

Jump to

Keyboard shortcuts

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