discovery

package
v3.39.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: Apache-2.0 Imports: 13 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