Documentation ¶
Index ¶
- type Option
- type Options
- type RpcClientService
- func (r *RpcClientService) Call(servicePath string, serviceMethod string, args interface{}, reply interface{}) error
- func (r *RpcClientService) Go(servicePath string, serviceMethod string, args interface{}, reply interface{}, ...)
- func (r *RpcClientService) Initialize(opts ...Option)
- func (r *RpcClientService) SetRpcFilter(f filter.Filter)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Options)
func RegistryType ¶
Register service type. option is consul, etcd, etcdv3, zookeeper.
func SelectMode ¶
Select mode of service. options is "RandomSelect","RoundRobin","WeightedRoundRobin", "WeightedICMP","ConsistentHash","Closest".
type RpcClientService ¶
type RpcClientService struct {
// contains filtered or unexported fields
}
func GetRpcClientService ¶
func GetRpcClientService() *RpcClientService
func (*RpcClientService) Call ¶
func (r *RpcClientService) Call(servicePath string, serviceMethod string, args interface{}, reply interface{}) error
func (*RpcClientService) Go ¶
func (r *RpcClientService) Go(servicePath string, serviceMethod string, args interface{}, reply interface{}, chanRet chan *client.Call)
func (*RpcClientService) Initialize ¶
func (r *RpcClientService) Initialize(opts ...Option)
func (*RpcClientService) SetRpcFilter ¶
func (r *RpcClientService) SetRpcFilter(f filter.Filter)
Set a filter for rpc
Click to show internal directories.
Click to hide internal directories.