discovery

package
v3.5.2 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2022 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 interface {
	Discover(ctx context.Context) ([]endpoint.Endpoint, error)
	WhoAmI(ctx context.Context) (*WhoAmI, error)
	Close(ctx context.Context) error
}

func New

func New(conn grpc.ClientConnInterface, endpoint, database string, ssl bool, trace trace.Driver) Client

type WhoAmI

type WhoAmI struct {
	User   string
	Groups []string
}

func (WhoAmI) String

func (w WhoAmI) String() string

Jump to

Keyboard shortcuts

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