Documentation
¶
Overview ¶
Package gate 提供网关组件,负责客户端连接管理和消息转发。 网关组件作为客户端与服务器集群之间的入口,处理连接建立、消息路由和负载均衡。
Index ¶
- type Gate
- type Option
- func WithAddr(addr string) Option
- func WithContext(ctx context.Context) Option
- func WithDispatch(dispatch cluster.Dispatch) Option
- func WithExpose(expose bool) Option
- func WithID(id string) Option
- func WithLocator(locator locate.Locator) Option
- func WithMetadata(metadata map[string]string) Option
- func WithName(name string) Option
- func WithRegistry(r registry.Registry) Option
- func WithServer(server network.Server) Option
- func WithTimeout(timeout time.Duration) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gate ¶
type Gate struct {
component.Base
cluster.BaseCluster
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.