Documentation
¶
Overview ¶
Package transport is the network client layer. It is only used for basic binary body network communication without any business logic. By default, there is only one pluggable ServerTransport.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct { ServiceName string Protocol string Address string Network string Handler Handler Listener net.Listener EventLoopNum int // epoll loop 大小,默认取 CPU 核数 IdleTimeout time.Duration // 连接最大空闲时间 KeepAlivePeriod time.Duration EnableH2C bool CACertFile string // ca certification file TLSCertFile string // server certification file TLSKeyFile string // server key file }
Options is the server options on start.
Directories
¶
Path | Synopsis |
---|---|
Package web provides support for http protocol by default, provides rpc server with http protocol, and provides rpc database for calling http protocol.
|
Package web provides support for http protocol by default, provides rpc server with http protocol, and provides rpc database for calling http protocol. |
Click to show internal directories.
Click to hide internal directories.