protocol

package
v0.0.0-...-680e691 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Default

func Default() netx.Protocol

Default 全局默认Protocol

func Detect

func Detect(r bytex.Peeker) netx.Protocol

Detect 自动探测协议

func Get

func Get(name string) netx.Protocol

Get 根据名称,返回指定协议,区分大小写

func Register

func Register(p netx.Protocol)

Register 注册协议,同名则会忽略,非线程安全,仅可以在启动时初始化

func SetDefault

func SetDefault(p netx.Protocol)

SetDefault 设置默认

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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