pd

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TiDBServerInformationPath = "/tidb/server/info"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EtcdProvider

type EtcdProvider interface {
	GetEtcdClient() *clientv3.Client
}

type LocalEtcdProvider

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

FIXME: We should be able to provide etcd directly. However currently there are problems in PD.

func NewLocalEtcdClientProvider

func NewLocalEtcdClientProvider(config *config.Config) (*LocalEtcdProvider, error)

func (*LocalEtcdProvider) GetEtcdClient

func (p *LocalEtcdProvider) GetEtcdClient() *clientv3.Client

Jump to

Keyboard shortcuts

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