go-vitess.v1: gopkg.in/src-d/go-vitess.v1/vt/vttablet/grpctmclient Index | Files

package grpctmclient

import "gopkg.in/src-d/go-vitess.v1/vt/vttablet/grpctmclient"

Index

Package Files

client.go

type Client Uses

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

Client implements tmclient.TabletManagerClient

func NewClient Uses

func NewClient() *Client

NewClient returns a new gRPC client.

func (*Client) ApplySchema Uses

func (client *Client) ApplySchema(ctx context.Context, tablet *topodatapb.Tablet, change *tmutils.SchemaChange) (*tabletmanagerdatapb.SchemaChangeResult, error)

ApplySchema is part of the tmclient.TabletManagerClient interface.

func (*Client) Backup Uses

func (client *Client) Backup(ctx context.Context, tablet *topodatapb.Tablet, concurrency int, allowMaster bool) (logutil.EventStream, error)

Backup is part of the tmclient.TabletManagerClient interface.

func (*Client) ChangeType Uses

func (client *Client) ChangeType(ctx context.Context, tablet *topodatapb.Tablet, dbType topodatapb.TabletType) error

ChangeType is part of the tmclient.TabletManagerClient interface.

func (*Client) Close Uses

func (client *Client) Close()

Close is part of the tmclient.TabletManagerClient interface.

func (*Client) DemoteMaster Uses

func (client *Client) DemoteMaster(ctx context.Context, tablet *topodatapb.Tablet) (string, error)

DemoteMaster is part of the tmclient.TabletManagerClient interface.

func (*Client) ExecuteFetchAsAllPrivs Uses

func (client *Client) ExecuteFetchAsAllPrivs(ctx context.Context, tablet *topodatapb.Tablet, query []byte, maxRows int, reloadSchema bool) (*querypb.QueryResult, error)

ExecuteFetchAsAllPrivs is part of the tmclient.TabletManagerClient interface.

func (*Client) ExecuteFetchAsApp Uses

func (client *Client) ExecuteFetchAsApp(ctx context.Context, tablet *topodatapb.Tablet, usePool bool, query []byte, maxRows int) (*querypb.QueryResult, error)

ExecuteFetchAsApp is part of the tmclient.TabletManagerClient interface.

func (*Client) ExecuteFetchAsDba Uses

func (client *Client) ExecuteFetchAsDba(ctx context.Context, tablet *topodatapb.Tablet, usePool bool, query []byte, maxRows int, disableBinlogs, reloadSchema bool) (*querypb.QueryResult, error)

ExecuteFetchAsDba is part of the tmclient.TabletManagerClient interface.

func (*Client) ExecuteHook Uses

func (client *Client) ExecuteHook(ctx context.Context, tablet *topodatapb.Tablet, hk *hook.Hook) (*hook.HookResult, error)

ExecuteHook is part of the tmclient.TabletManagerClient interface.

func (*Client) GetPermissions Uses

func (client *Client) GetPermissions(ctx context.Context, tablet *topodatapb.Tablet) (*tabletmanagerdatapb.Permissions, error)

GetPermissions is part of the tmclient.TabletManagerClient interface.

func (*Client) GetSchema Uses

func (client *Client) GetSchema(ctx context.Context, tablet *topodatapb.Tablet, tables, excludeTables []string, includeViews bool) (*tabletmanagerdatapb.SchemaDefinition, error)

GetSchema is part of the tmclient.TabletManagerClient interface.

func (*Client) GetSlaves Uses

func (client *Client) GetSlaves(ctx context.Context, tablet *topodatapb.Tablet) ([]string, error)

GetSlaves is part of the tmclient.TabletManagerClient interface.

func (*Client) IgnoreHealthError Uses

func (client *Client) IgnoreHealthError(ctx context.Context, tablet *topodatapb.Tablet, pattern string) error

IgnoreHealthError is part of the tmclient.TabletManagerClient interface.

func (*Client) InitMaster Uses

func (client *Client) InitMaster(ctx context.Context, tablet *topodatapb.Tablet) (string, error)

InitMaster is part of the tmclient.TabletManagerClient interface.

func (*Client) InitSlave Uses

func (client *Client) InitSlave(ctx context.Context, tablet *topodatapb.Tablet, parent *topodatapb.TabletAlias, replicationPosition string, timeCreatedNS int64) error

InitSlave is part of the tmclient.TabletManagerClient interface.

func (*Client) LockTables Uses

func (client *Client) LockTables(ctx context.Context, tablet *topodatapb.Tablet) error

LockTables is part of the tmclient.TabletManagerClient interface.

func (*Client) MasterPosition Uses

func (client *Client) MasterPosition(ctx context.Context, tablet *topodatapb.Tablet) (string, error)

MasterPosition is part of the tmclient.TabletManagerClient interface.

func (*Client) Ping Uses

func (client *Client) Ping(ctx context.Context, tablet *topodatapb.Tablet) error

Ping is part of the tmclient.TabletManagerClient interface.

func (*Client) PopulateReparentJournal Uses

func (client *Client) PopulateReparentJournal(ctx context.Context, tablet *topodatapb.Tablet, timeCreatedNS int64, actionName string, masterAlias *topodatapb.TabletAlias, pos string) error

PopulateReparentJournal is part of the tmclient.TabletManagerClient interface.

func (*Client) PreflightSchema Uses

func (client *Client) PreflightSchema(ctx context.Context, tablet *topodatapb.Tablet, changes []string) ([]*tabletmanagerdatapb.SchemaChangeResult, error)

PreflightSchema is part of the tmclient.TabletManagerClient interface.

func (*Client) PromoteSlave Uses

func (client *Client) PromoteSlave(ctx context.Context, tablet *topodatapb.Tablet) (string, error)

PromoteSlave is part of the tmclient.TabletManagerClient interface.

func (*Client) PromoteSlaveWhenCaughtUp Uses

func (client *Client) PromoteSlaveWhenCaughtUp(ctx context.Context, tablet *topodatapb.Tablet, pos string) (string, error)

PromoteSlaveWhenCaughtUp is part of the tmclient.TabletManagerClient interface.

func (*Client) RefreshState Uses

func (client *Client) RefreshState(ctx context.Context, tablet *topodatapb.Tablet) error

RefreshState is part of the tmclient.TabletManagerClient interface.

func (*Client) ReloadSchema Uses

func (client *Client) ReloadSchema(ctx context.Context, tablet *topodatapb.Tablet, waitPosition string) error

ReloadSchema is part of the tmclient.TabletManagerClient interface.

func (*Client) ResetReplication Uses

func (client *Client) ResetReplication(ctx context.Context, tablet *topodatapb.Tablet) error

ResetReplication is part of the tmclient.TabletManagerClient interface.

func (*Client) RestoreFromBackup Uses

func (client *Client) RestoreFromBackup(ctx context.Context, tablet *topodatapb.Tablet) (logutil.EventStream, error)

RestoreFromBackup is part of the tmclient.TabletManagerClient interface.

func (*Client) RunHealthCheck Uses

func (client *Client) RunHealthCheck(ctx context.Context, tablet *topodatapb.Tablet) error

RunHealthCheck is part of the tmclient.TabletManagerClient interface.

func (*Client) SetMaster Uses

func (client *Client) SetMaster(ctx context.Context, tablet *topodatapb.Tablet, parent *topodatapb.TabletAlias, timeCreatedNS int64, forceStartSlave bool) error

SetMaster is part of the tmclient.TabletManagerClient interface.

func (*Client) SetReadOnly Uses

func (client *Client) SetReadOnly(ctx context.Context, tablet *topodatapb.Tablet) error

SetReadOnly is part of the tmclient.TabletManagerClient interface.

func (*Client) SetReadWrite Uses

func (client *Client) SetReadWrite(ctx context.Context, tablet *topodatapb.Tablet) error

SetReadWrite is part of the tmclient.TabletManagerClient interface.

func (*Client) SlaveStatus Uses

func (client *Client) SlaveStatus(ctx context.Context, tablet *topodatapb.Tablet) (*replicationdatapb.Status, error)

SlaveStatus is part of the tmclient.TabletManagerClient interface.

func (*Client) SlaveWasPromoted Uses

func (client *Client) SlaveWasPromoted(ctx context.Context, tablet *topodatapb.Tablet) error

SlaveWasPromoted is part of the tmclient.TabletManagerClient interface.

func (*Client) SlaveWasRestarted Uses

func (client *Client) SlaveWasRestarted(ctx context.Context, tablet *topodatapb.Tablet, parent *topodatapb.TabletAlias) error

SlaveWasRestarted is part of the tmclient.TabletManagerClient interface.

func (*Client) Sleep Uses

func (client *Client) Sleep(ctx context.Context, tablet *topodatapb.Tablet, duration time.Duration) error

Sleep is part of the tmclient.TabletManagerClient interface.

func (*Client) StartSlave Uses

func (client *Client) StartSlave(ctx context.Context, tablet *topodatapb.Tablet) error

StartSlave is part of the tmclient.TabletManagerClient interface.

func (*Client) StartSlaveUntilAfter Uses

func (client *Client) StartSlaveUntilAfter(ctx context.Context, tablet *topodatapb.Tablet, position string, waitTime time.Duration) error

StartSlaveUntilAfter is part of the tmclient.TabletManagerClient interface.

func (*Client) StopReplicationAndGetStatus Uses

func (client *Client) StopReplicationAndGetStatus(ctx context.Context, tablet *topodatapb.Tablet) (*replicationdatapb.Status, error)

StopReplicationAndGetStatus is part of the tmclient.TabletManagerClient interface.

func (*Client) StopSlave Uses

func (client *Client) StopSlave(ctx context.Context, tablet *topodatapb.Tablet) error

StopSlave is part of the tmclient.TabletManagerClient interface.

func (*Client) StopSlaveMinimum Uses

func (client *Client) StopSlaveMinimum(ctx context.Context, tablet *topodatapb.Tablet, minPos string, waitTime time.Duration) (string, error)

StopSlaveMinimum is part of the tmclient.TabletManagerClient interface.

func (*Client) TabletExternallyReparented Uses

func (client *Client) TabletExternallyReparented(ctx context.Context, tablet *topodatapb.Tablet, externalID string) error

TabletExternallyReparented is part of the tmclient.TabletManagerClient interface.

func (*Client) UndoDemoteMaster Uses

func (client *Client) UndoDemoteMaster(ctx context.Context, tablet *topodatapb.Tablet) error

UndoDemoteMaster is part of the tmclient.TabletManagerClient interface.

func (*Client) UnlockTables Uses

func (client *Client) UnlockTables(ctx context.Context, tablet *topodatapb.Tablet) error

UnlockTables is part of the tmclient.TabletManagerClient interface.

func (*Client) VReplicationExec Uses

func (client *Client) VReplicationExec(ctx context.Context, tablet *topodatapb.Tablet, query string) (*querypb.QueryResult, error)

VReplicationExec is part of the tmclient.TabletManagerClient interface.

func (*Client) VReplicationWaitForPos Uses

func (client *Client) VReplicationWaitForPos(ctx context.Context, tablet *topodatapb.Tablet, id int, pos string) error

VReplicationWaitForPos is part of the tmclient.TabletManagerClient interface.

Package grpctmclient imports 19 packages (graph) and is imported by 6 packages. Updated 2019-06-13. Refresh now. Tools for package owners.