discovery

package
v3.24.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2022 License: Apache-2.0 Imports: 17 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(
	ctx context.Context,
	cc conn.Conn,
	crudExplorer InserterRemoverExplorerLocker,
	driverTrace trace.Driver,
	opts ...config.Option,
) (_ *Client, err error)

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)

type InserterRemoverExplorerLocker added in v3.21.0

type InserterRemoverExplorerLocker interface {
	cluster.Inserter
	cluster.Remover
	cluster.Explorer
	sync.Locker
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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