Documentation ¶
Index ¶
- type MockServer
- type Storage
- func (s *Storage) GetData() (data *pb.SyncData)
- func (s *Storage) GetMapByCluster(clusterName string) (mapping pb.SyncMapping)
- func (s *Storage) GetMaps() (mapping pb.SyncMapping)
- func (s *Storage) UpdateData(data *pb.SyncData)
- func (s *Storage) UpdateMapByCluster(clusterName string, mapping pb.SyncMapping)
- func (s *Storage) UpdateMaps(maps pb.SyncMapping)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockServer ¶
type MockServer struct {
// contains filtered or unexported fields
}
func NewKVServer ¶
func NewKVServer() (svr *MockServer, err error)
func (*MockServer) Stop ¶
func (m *MockServer) Stop()
func (*MockServer) Storage ¶
func (m *MockServer) Storage() *clientv3.Client
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Storage of Syncer
func (*Storage) GetMapByCluster ¶
func (s *Storage) GetMapByCluster(clusterName string) (mapping pb.SyncMapping)
GetMapByCluster get map by clusterName of other cluster
func (*Storage) GetMaps ¶
func (s *Storage) GetMaps() (mapping pb.SyncMapping)
GetMaps Get maps from storage
func (*Storage) UpdateData ¶
UpdateData Update data to storage
func (*Storage) UpdateMapByCluster ¶
func (s *Storage) UpdateMapByCluster(clusterName string, mapping pb.SyncMapping)
UpdateMapByCluster update map to storage by clusterName of other cluster
func (*Storage) UpdateMaps ¶
func (s *Storage) UpdateMaps(maps pb.SyncMapping)
Click to show internal directories.
Click to hide internal directories.