Documentation ¶
Index ¶
Constants ¶
View Source
const (
BUILD_TASK_DATA = "[BuildTaskData]"
)
Variables ¶
This section is empty.
Functions ¶
func UpdateToSlaveCache ¶
func UpdateToSlaveCache(configCache ConfigCache)
UpdateToSlaveCache 更新同步到slave的缓存
Types ¶
type AutoLogic ¶
func NewAutoLogic ¶
func NewAutoLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AutoLogic
func (*AutoLogic) AutoCheckExist ¶
AutoCheckExist 检查指定的数据是否存在数据库
func (*AutoLogic) AutoCreate ¶
AutoCreate 灵活的添加指定数据结构的指定数据
type ConfigCache ¶
type Configs ¶
func GetConfigsCacheByRegion ¶
GetConfigsCacheByRegion 使用地域获取所有配置
func GetMasterCacheByRegion ¶
GetMasterCacheByRegion 从缓存获取指定region的master配置
type RegionToConfigCacheLogic ¶
func NewRegionToConfigCacheLogic ¶
func NewRegionToConfigCacheLogic(ctx context.Context, svcCtx *svc.ServiceContext) *RegionToConfigCacheLogic
func (*RegionToConfigCacheLogic) SetRegionToConfigsCache ¶
func (r *RegionToConfigCacheLogic) SetRegionToConfigsCache() error
SetRegionToConfigsCache 设置某个地域所需要同步的配置
type SyncToMasterLogic ¶
func NewSyncToMasterLogic ¶
func NewSyncToMasterLogic(ctx context.Context, svcCtx *svc.ServiceContext) *SyncToMasterLogic
func (*SyncToMasterLogic) SyncToMaster ¶
func (l *SyncToMasterLogic) SyncToMaster(in *master.SyncData) (*master.UpdateVersions, error)
从slave同步到master
type SyncToSlaveLogic ¶
func NewSyncToSlaveLogic ¶
func NewSyncToSlaveLogic(ctx context.Context, svcCtx *svc.ServiceContext) *SyncToSlaveLogic
func (*SyncToSlaveLogic) SyncToSlave ¶
func (l *SyncToSlaveLogic) SyncToSlave(in *master.UpdateVersions) (*master.SyncData, error)
从master同步到slave
type TaskLogic ¶
func NewTaskLogic ¶
func NewTaskLogic(ctx context.Context, svcCtx *svc.ServiceContext) *TaskLogic
func (*TaskLogic) BuildTaskData ¶
type UpdateConfigsCacheLogic ¶
func NewUpdateConfigsCacheLogic ¶
func NewUpdateConfigsCacheLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateConfigsCacheLogic
func (*UpdateConfigsCacheLogic) UpdateConfigsCache ¶
从master更新本地config缓存
Click to show internal directories.
Click to hide internal directories.