Documentation ¶
Index ¶
- func NewDiscoveryClient(conn gopi.RPCClientConn) gopi.RPCClient
- type Client
- func (this *Client) Conn() gopi.RPCClientConn
- func (this *Client) Enumerate(t rpc.DiscoveryType, timeout time.Duration) ([]string, error)
- func (this *Client) Lookup(service string, t rpc.DiscoveryType, timeout time.Duration) ([]gopi.RPCServiceRecord, error)
- func (this *Client) NewContext(timeout time.Duration) context.Context
- func (this *Client) Ping() error
- func (this *Client) Register(service gopi.RPCServiceRecord) error
- func (this *Client) StreamEvents(service string, events chan<- gopi.RPCEvent) error
- func (this *Client) String() string
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDiscoveryClient ¶
func NewDiscoveryClient(conn gopi.RPCClientConn) gopi.RPCClient
Types ¶
type Client ¶
type Client struct { pb.DiscoveryClient // contains filtered or unexported fields }
func (*Client) Conn ¶
func (this *Client) Conn() gopi.RPCClientConn
func (*Client) Lookup ¶
func (this *Client) Lookup(service string, t rpc.DiscoveryType, timeout time.Duration) ([]gopi.RPCServiceRecord, error)
Lookup service instances
func (*Client) Register ¶
func (this *Client) Register(service gopi.RPCServiceRecord) error
Register a service record
func (*Client) StreamEvents ¶
Stream events
Click to show internal directories.
Click to hide internal directories.