Documentation ¶
Overview ¶
*
* * @author liangjf * @create on 2020/5/20 * @version 1.0
*
* * @author liangjf * @create on 2020/5/20 * @version 1.0
*
* * @author liangjf * @create on 2020/5/20 * @version 1.0
*
* * @author liangjf * @create on 2020/5/21 * @version 1.0
*
* * @author liangjf * @create on 2020/5/20 * @version 1.0
*
* * @author liangjf * @create on 2020/5/20 * @version 1.0
Index ¶
- Variables
- type FactoryRPCTransport
- type FactoryTcpTransport
- type FactoryWSTransport
- type IFactory
- type ITransport
- func NewFactoryRPCTransport(opts ...Option) ITransport
- func NewFactoryTcpTransport(opts ...Option) ITransport
- func NewFactoryWSTransport(opts ...Option) ITransport
- func NewRpcTransport(opts ...Option) ITransport
- func NewTcpTransport(opts ...Option) ITransport
- func NewWSTransport(opts ...Option) ITransport
- type Option
- type Options
Constants ¶
This section is empty.
Variables ¶
View Source
var ( HeartbeatReply = []byte("ok") ErrConnReqPayloadInfoReply = []byte("conn req payload info err") )
Functions ¶
This section is empty.
Types ¶
type FactoryRPCTransport ¶
type FactoryRPCTransport struct{}
type FactoryTcpTransport ¶
type FactoryTcpTransport struct{}
type FactoryWSTransport ¶
type FactoryWSTransport struct{}
type IFactory ¶
type IFactory interface {
CreateTransport() ITransport
}
type ITransport ¶
func NewFactoryRPCTransport ¶
func NewFactoryRPCTransport(opts ...Option) ITransport
func NewFactoryTcpTransport ¶
func NewFactoryTcpTransport(opts ...Option) ITransport
func NewFactoryWSTransport ¶
func NewFactoryWSTransport(opts ...Option) ITransport
func NewRpcTransport ¶
func NewRpcTransport(opts ...Option) ITransport
func NewTcpTransport ¶
func NewTcpTransport(opts ...Option) ITransport
func NewWSTransport ¶
func NewWSTransport(opts ...Option) ITransport
Click to show internal directories.
Click to hide internal directories.