package discovery

import "github.com/ydb-platform/ydb-go-sdk/v3/internal/discovery"

Index

Variables

var DefaultDiscoveryInterval = time.Minute

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

Source Files

defaults.go discovery.go

Version
v3.5.4
Published
Jan 3, 2022
Platform
darwin/amd64
Imports
12 packages
Last checked
3 seconds ago

Tools for package owners.