gnet

package module
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(o *options)

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 *endpoint.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 *endpoint.Endpoint) (transport.NodeClient, error)

NewNodeClient 新建节点客户端

func (*Transporter) NewNodeServer

func (t *Transporter) NewNodeServer(provider transport.NodeProvider) (transport.Server, error)

NewNodeServer 新建节点服务器

func (*Transporter) SetDefaultDiscovery

func (t *Transporter) SetDefaultDiscovery(discovery registry.Discovery)

SetDefaultDiscovery 设置默认的服务发现组件

func (*Transporter) UpdateClientPool

func (t *Transporter) UpdateClientPool(endpoints map[string]*endpoint.Endpoint)

Directories

Path Synopsis
internal
pb

Jump to

Keyboard shortcuts

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