l2vtgate

package
v2.1.0-rc.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2017 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Overview

Package l2vtgate provides the core functionnality of a second-layer vtgate to route queries from an original vtgate to a subset of tablets.

Index

Constants

This section is empty.

Variables

View Source
var RegisterL2VTGates []RegisterL2VTGate

RegisterL2VTGates stores register funcs for L2VTGate server.

Functions

This section is empty.

Types

type L2VTGate

type L2VTGate struct {
	queryservice.QueryService
	// contains filtered or unexported fields
}

L2VTGate implements queryservice.QueryService and forwards queries to the underlying gateway.

func Init

func Init(hc discovery.HealthCheck, topoServer topo.Server, serv topo.SrvTopoServer, statsName, cell string, retryCount int, tabletTypesToWait []topodatapb.TabletType) *L2VTGate

Init creates the single L2VTGate with the provided parameters.

func (*L2VTGate) Gateway

func (l *L2VTGate) Gateway() gateway.Gateway

Gateway returns this l2vtgate Gateway object (for tests mainly).

func (*L2VTGate) GetGatewayCacheStatus

func (l *L2VTGate) GetGatewayCacheStatus() gateway.TabletCacheStatusList

GetGatewayCacheStatus returns a displayable version of the Gateway cache.

type RegisterL2VTGate

type RegisterL2VTGate func(queryservice.QueryService)

RegisterL2VTGate defines the type of registration mechanism.

Jump to

Keyboard shortcuts

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