Documentation ¶
Index ¶
- func CloseClients() error
- func GetConn(serverID string) (*grpc.ClientConn, bool)
- func InitClients()
- func RemoveConn(serverID string)
- func StartServer(addr string, service protos.RPCServer) error
- func StopServer()
- func TryBestCall(serverID string, client protos.RPCClient, request *protos.CallRequest) (*protos.CallRespond, error)
- func WatchServer()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseClients ¶
func CloseClients() error
func InitClients ¶
func InitClients()
func RemoveConn ¶
func RemoveConn(serverID string)
func StopServer ¶
func StopServer()
func TryBestCall ¶
func TryBestCall(serverID string, client protos.RPCClient, request *protos.CallRequest) (*protos.CallRespond, error)
func WatchServer ¶
func WatchServer()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.