Documentation ¶
Index ¶
- Constants
- type BranchImpl
- func (b BranchImpl) CreateBatches(ctx context.Context, list entity.BranchList) error
- func (b BranchImpl) GetBranches(ctx context.Context, gid string) (list entity.BranchList, err error)
- func (b BranchImpl) GetCollection() *mongo.Collection
- func (b BranchImpl) UpdateBranchStateByGid(ctx context.Context, branchId string, state consts.BranchState, errMsg string) (int64, error)
- type Dao
- type GlobalImpl
- func (g GlobalImpl) CreateGlobal(ctx context.Context, global *entity.Global) (err error)
- func (g GlobalImpl) FindProcessingList(ctx context.Context, limit, maxTimes int) (list []*entity.Global, err error)
- func (g GlobalImpl) GetCollection() *mongo.Collection
- func (g GlobalImpl) GetGlobal(ctx context.Context, gid string) (global entity.Global, err error)
- func (g GlobalImpl) IncrTryTimes(ctx context.Context, gid string, nextCronTime int) error
- func (g GlobalImpl) UpdateGlobalStateByGid(ctx context.Context, gid string, state consts.GlobalState) (int64, error)
- type Settings
Constants ¶
View Source
const ( MinPool = 10 DefaultMaxPool = 100 AllowMaxPool = 250 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BranchImpl ¶
type BranchImpl struct { }
func (BranchImpl) CreateBatches ¶
func (b BranchImpl) CreateBatches(ctx context.Context, list entity.BranchList) error
func (BranchImpl) GetBranches ¶
func (b BranchImpl) GetBranches(ctx context.Context, gid string) (list entity.BranchList, err error)
func (BranchImpl) GetCollection ¶
func (b BranchImpl) GetCollection() *mongo.Collection
func (BranchImpl) UpdateBranchStateByGid ¶
func (b BranchImpl) UpdateBranchStateByGid(ctx context.Context, branchId string, state consts.BranchState, errMsg string) (int64, error)
type GlobalImpl ¶
type GlobalImpl struct { }
func (GlobalImpl) CreateGlobal ¶
func (GlobalImpl) FindProcessingList ¶
func (GlobalImpl) GetCollection ¶
func (g GlobalImpl) GetCollection() *mongo.Collection
func (GlobalImpl) IncrTryTimes ¶
func (GlobalImpl) UpdateGlobalStateByGid ¶
func (g GlobalImpl) UpdateGlobalStateByGid(ctx context.Context, gid string, state consts.GlobalState) (int64, error)
Click to show internal directories.
Click to hide internal directories.