Documentation ¶ Index ¶ type Client func NewClient(nc *nats.Conn, liveCycle time.Duration) (*Client, error) func (c *Client) KeepAlive(ctx context.Context, getNode func() discovery.Node) error type Discovery type NodeStateChangeCallback Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Client ¶ type Client struct { // contains filtered or unexported fields } func NewClient ¶ func NewClient(nc *nats.Conn, liveCycle time.Duration) (*Client, error) NewClient create a client instance func (*Client) KeepAlive ¶ func (c *Client) KeepAlive(ctx context.Context, getNode func() discovery.Node) error type Discovery ¶ type Discovery interface { KeepAlive(ctx context.Context, getNode func() discovery.Node) error } type NodeStateChangeCallback ¶ type NodeStateChangeCallback func(req discovery.Request) Source Files ¶ View all Source files client.go Click to show internal directories. Click to hide internal directories.