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.
Click to show internal directories.
Click to hide internal directories.