client

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL