Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRPCServer ¶
func NewRPCServer(plugin *serverplugin.ZooKeeperRegisterPlugin) (*server.Server, error)
func NewRpcPlugin ¶
func NewRpcPlugin(v *viper.Viper) (*serverplugin.ZooKeeperRegisterPlugin, error)
Types ¶
type XClientPool ¶
type XClientPool struct {
// contains filtered or unexported fields
}
func NewXClientPool ¶
func NewXClientPool(pPrefix string, servers []string) (*XClientPool, error)
func (*XClientPool) Call ¶
func (s *XClientPool) Call(ctx context.Context, serviceMethod string, args interface{}, reply interface{}) error
Call serviceMethod: {包名后缀}_{服务名}_{成员函数名} 比如: activity_TaskService_Draw
Click to show internal directories.
Click to hide internal directories.