Versions in this module Expand all Collapse all v0 v0.1.0 Jun 15, 2023 Changes in this version + var HotRegionTypes = []string + func HotRegionStorePath(hotRegionType string, updateTime int64, regionID uint64) string + func TryGetLocalRegionStorage(s Storage) endpoint.RegionStorage + func TryLoadRegionsOnce(ctx context.Context, s Storage, ...) error + func TrySwitchRegionStorage(s Storage, useLocalRegionStorage bool) endpoint.RegionStorage + type HistoryHotRegion struct + EncryptionMeta *encryptionpb.EncryptionMeta + EndKey string + FlowBytes float64 + HotDegree int64 + HotRegionType string + IsLeader bool + IsLearner bool + KeyRate float64 + PeerID uint64 + QueryRate float64 + RegionID uint64 + StartKey string + StoreID uint64 + UpdateTime int64 + type HistoryHotRegions struct + HistoryHotRegion []*HistoryHotRegion + type HotRegionStorage struct + func NewHotRegionsStorage(ctx context.Context, filePath string, ekm *encryption.Manager, ...) (*HotRegionStorage, error) + func (h *HotRegionStorage) Close() error + func (h *HotRegionStorage) NewIterator(requireTypes []string, startTime, endTime int64) HotRegionStorageIterator + type HotRegionStorageHandler interface + GetHotRegionsReservedDays func() uint64 + GetHotRegionsWriteInterval func() time.Duration + IsLeader func() bool + PackHistoryHotReadRegions func() ([]HistoryHotRegion, error) + PackHistoryHotWriteRegions func() ([]HistoryHotRegion, error) + type HotRegionStorageIterator struct + func (it *HotRegionStorageIterator) Next() (*HistoryHotRegion, error) + type HotRegionType uint32 + const ReadType + const WriteType + func (h HotRegionType) String() string + type Storage interface + func NewCoreStorage(defaultStorage Storage, regionStorage endpoint.RegionStorage) Storage + func NewStorageWithEtcdBackend(client *clientv3.Client, rootPath string) Storage + func NewStorageWithLevelDBBackend(ctx context.Context, filePath string, ekm *encryption.Manager) (Storage, error) + func NewStorageWithMemoryBackend() Storage