Documentation ¶
Index ¶
- type Option
- type Transporter
- func (t *Transporter) NewGateClient(ep *router.Endpoint) (transport.GateClient, error)
- func (t *Transporter) NewGateServer(provider transport.GateProvider) (transport.Server, error)
- func (t *Transporter) NewNodeClient(ep *router.Endpoint) (transport.NodeClient, error)
- func (t *Transporter) NewNodeServer(provider transport.NodeProvider) (transport.Server, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(o *options)
func WithServerListenAddr ¶
WithServerListenAddr 设置RPC服务器监听地址
type Transporter ¶
type Transporter struct {
// contains filtered or unexported fields
}
func NewTransporter ¶
func NewTransporter(opts ...Option) *Transporter
func (*Transporter) NewGateClient ¶
func (t *Transporter) NewGateClient(ep *router.Endpoint) (transport.GateClient, error)
NewGateClient 新建网关客户端
func (*Transporter) NewGateServer ¶
func (t *Transporter) NewGateServer(provider transport.GateProvider) (transport.Server, error)
NewGateServer 新建网关服务器
func (*Transporter) NewNodeClient ¶
func (t *Transporter) NewNodeClient(ep *router.Endpoint) (transport.NodeClient, error)
NewNodeClient 新建节点客户端
func (*Transporter) NewNodeServer ¶
func (t *Transporter) NewNodeServer(provider transport.NodeProvider) (transport.Server, error)
NewNodeServer 新建节点服务器
Click to show internal directories.
Click to hide internal directories.