conn

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDuplicatedConn = errors.New("duplicated conn")
View Source
var ErrID = errors.New("id is not exist")

Functions

func NewActiveConn

func NewActiveConn(id, host string, port uint, path string, cfg *cfg.Config, headers ...string) (core.Connection, error)

发起请求建立连接

func NewPassiveConn

func NewPassiveConn(w http.ResponseWriter, r *http.Request, cfg *cfg.Config) (core.Connection, error)

接收请求建立连接

Types

This section is empty.

Jump to

Keyboard shortcuts

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