logic

package
v0.0.0-...-115e584 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SyncToMasterLogic

type SyncToMasterLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewSyncToMasterLogic

func NewSyncToMasterLogic(ctx context.Context, svcCtx *svc.ServiceContext) *SyncToMasterLogic

func (*SyncToMasterLogic) SyncToMaster

func (l *SyncToMasterLogic) SyncToMaster(in *slave.SyncData) (*slave.UpdateVersions, error)

从slave同步到master

type SyncToSlaveLogic

type SyncToSlaveLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewSyncToSlaveLogic

func NewSyncToSlaveLogic(ctx context.Context, svcCtx *svc.ServiceContext) *SyncToSlaveLogic

func (*SyncToSlaveLogic) SyncToSlave

func (l *SyncToSlaveLogic) SyncToSlave(in *slave.UpdateVersions) (*slave.SyncData, error)

从master同步到slave

type UpdateConfigsCacheLogic

type UpdateConfigsCacheLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewUpdateConfigsCacheLogic

func NewUpdateConfigsCacheLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateConfigsCacheLogic

func (*UpdateConfigsCacheLogic) UpdateConfigsCache

func (l *UpdateConfigsCacheLogic) UpdateConfigsCache(in *slave.Region) (*slave.Configs, error)

从master更新本地config缓存

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL