discovery

package
v3.42.3 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultDiscoveryInterval = time.Minute

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(
	cc conn.Conn,
	config config.Config,
) *Client

func (*Client) Close

func (c *Client) Close(ctx context.Context) error

func (*Client) Discover

func (c *Client) Discover(ctx context.Context) (endpoints []endpoint.Endpoint, err error)

Discover cluster endpoints

func (*Client) WhoAmI

func (c *Client) WhoAmI(ctx context.Context) (whoAmI *discovery.WhoAmI, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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