Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TestServer ¶
type TestServer struct { topo.Impl HookLockSrvShardForAction func() // contains filtered or unexported fields }
TestServer is a proxy for a real implementation of topo.Server that provides hooks for testing.
func (*TestServer) GetKnownCells ¶
func (s *TestServer) GetKnownCells(ctx context.Context) ([]string, error)
GetKnownCells is part of topo.Server interface
func (*TestServer) LockSrvShardForAction ¶
func (s *TestServer) LockSrvShardForAction(ctx context.Context, cell, keyspace, shard, contents string) (string, error)
LockSrvShardForAction should override the function defined by the underlying topo.Server.
Click to show internal directories.
Click to hide internal directories.