Documentation ¶
Index ¶
- type Discovery
- type MultiServersDiscovery
- type SelectMode
- type XClient
- func (c *XClient) Broadcast(ctx context.Context, serviceMethod string, args, reply any) error
- func (c *XClient) Call(ctx context.Context, serviceMethod string, args, reply any) error
- func (c *XClient) Close() error
- func (c *XClient) Go(serviceMethod string, args, reply any, done chan *rpc.Call) *rpc.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MultiServersDiscovery ¶
type MultiServersDiscovery struct {
// contains filtered or unexported fields
}
func NewMultiServerDiscovery ¶
func NewMultiServerDiscovery(servers []string) *MultiServersDiscovery
func (*MultiServersDiscovery) Get ¶
func (d *MultiServersDiscovery) Get(mode SelectMode) (string, error)
func (*MultiServersDiscovery) GetAll ¶
func (d *MultiServersDiscovery) GetAll() ([]string, error)
func (*MultiServersDiscovery) Refresh ¶
func (d *MultiServersDiscovery) Refresh() error
func (*MultiServersDiscovery) Update ¶
func (d *MultiServersDiscovery) Update(servers []string) error
Click to show internal directories.
Click to hide internal directories.