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) 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.
Click to show internal directories.
Click to hide internal directories.