Documentation
¶
Index ¶
- func SetDBConn(db *gorm.DB)
- type SqlStore
- func (s *SqlStore) ChangeGlobalStatus(global *storage.TransGlobalStore, newStatus string, updates []string, ...)
- func (s *SqlStore) FindBranches(gid string) []storage.TransBranchStore
- func (s *SqlStore) FindTransGlobalStore(gid string) *storage.TransGlobalStore
- func (s *SqlStore) LockGlobalSaveBranches(gid string, status string, branches []storage.TransBranchStore, ...)
- func (s *SqlStore) LockOneGlobalTrans(expireIn time.Duration) *storage.TransGlobalStore
- func (s *SqlStore) MaySaveNewTrans(global *storage.TransGlobalStore, branches []storage.TransBranchStore) error
- func (s *SqlStore) Ping() error
- func (s *SqlStore) PopulateData(skipDrop bool)
- func (s *SqlStore) ScanTransGlobalStores(position *string, limit int64) []storage.TransGlobalStore
- func (s *SqlStore) TouchCronTime(global *storage.TransGlobalStore, nextCronInterval int64)
- func (s *SqlStore) UpdateBranches(branches []storage.TransBranchStore, updates []string) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SqlStore ¶
type SqlStore struct { }
func (*SqlStore) ChangeGlobalStatus ¶
func (*SqlStore) FindBranches ¶
func (s *SqlStore) FindBranches(gid string) []storage.TransBranchStore
func (*SqlStore) FindTransGlobalStore ¶
func (s *SqlStore) FindTransGlobalStore(gid string) *storage.TransGlobalStore
func (*SqlStore) LockGlobalSaveBranches ¶
func (*SqlStore) LockOneGlobalTrans ¶
func (s *SqlStore) LockOneGlobalTrans(expireIn time.Duration) *storage.TransGlobalStore
func (*SqlStore) MaySaveNewTrans ¶
func (s *SqlStore) MaySaveNewTrans(global *storage.TransGlobalStore, branches []storage.TransBranchStore) error
func (*SqlStore) PopulateData ¶
func (*SqlStore) ScanTransGlobalStores ¶
func (s *SqlStore) ScanTransGlobalStores(position *string, limit int64) []storage.TransGlobalStore
func (*SqlStore) TouchCronTime ¶
func (s *SqlStore) TouchCronTime(global *storage.TransGlobalStore, nextCronInterval int64)
func (*SqlStore) UpdateBranches ¶ added in v1.8.0
Click to show internal directories.
Click to hide internal directories.