client

package
v0.0.0-...-c201ef6 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultMasterPort = 7100
View Source
const DefaultTserverPort = 9100

Variables

This section is empty.

Functions

This section is empty.

Types

type HostState

type HostState struct {
	Status                   *server.ServerStatusPB
	GenericService           server.GenericService
	MasterService            master.MasterService
	TabletServerService      tserver.TabletServerService
	TabletServerAdminService tserver.TabletServerAdminService
	ConsensusService         consensus.ConsensusService
	CDCService               cdc.CDCService
	// contains filtered or unexported fields
}

func NewHostState

func NewHostState(log logr.Logger, host *common.HostPortPB, dialer dial.Dialer) (*HostState, error)

func (*HostState) Close

func (h *HostState) Close() error

type YBClient

type YBClient struct {
	Log logr.Logger
	Fs  vfs.Filesystem

	Config *config.UniverseConfigPB

	Master *HostState

	TServersUUIDMap map[uuid.UUID]*HostState
	TServersHostMap map[string]*HostState
	// contains filtered or unexported fields
}

func (*YBClient) Close

func (c *YBClient) Close()

TODO: Log errors

func (*YBClient) Connect

func (c *YBClient) Connect() error

func (*YBClient) GetDialer

func (c *YBClient) GetDialer() (dial.Dialer, error)

func (*YBClient) OverrideDialer

func (c *YBClient) OverrideDialer(dialer dial.Dialer)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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