Documentation
¶
Index ¶
- type Manager
- func (m *Manager) Close() error
- func (m *Manager) GetClient(name string) (*ggrpc.ClientConn, error)
- func (m *Manager) InitServer(name string, keyFile string, certFile string) (*ggrpc.Server, error)
- func (m *Manager) RegisterClient(ctx context.Context, name string, target string, certFile string) error
- func (m *Manager) RegisterServer(name string, server Server) error
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager 管理 gRPC server/client 的注册与连接。
func (*Manager) GetClient ¶
func (m *Manager) GetClient(name string) (*ggrpc.ClientConn, error)
GetClient 返回已注册的客户端连接。
func (*Manager) InitServer ¶
InitServer 根据已注册服务创建 gRPC Server。
Click to show internal directories.
Click to hide internal directories.