boltdb

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2022 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoltdbStore

type BoltdbStore struct {
}

func (*BoltdbStore) ChangeGlobalStatus

func (s *BoltdbStore) ChangeGlobalStatus(global *storage.TransGlobalStore, newStatus string, updates []string, finished bool)

func (*BoltdbStore) FindBranches

func (s *BoltdbStore) FindBranches(gid string) []storage.TransBranchStore

func (*BoltdbStore) FindTransGlobalStore

func (s *BoltdbStore) FindTransGlobalStore(gid string) (trans *storage.TransGlobalStore)

func (*BoltdbStore) LockGlobalSaveBranches

func (s *BoltdbStore) LockGlobalSaveBranches(gid string, status string, branches []storage.TransBranchStore, branchStart int)

func (*BoltdbStore) LockOneGlobalTrans

func (s *BoltdbStore) LockOneGlobalTrans(expireIn time.Duration) *storage.TransGlobalStore

func (*BoltdbStore) MaySaveNewTrans

func (s *BoltdbStore) MaySaveNewTrans(global *storage.TransGlobalStore, branches []storage.TransBranchStore) error

func (*BoltdbStore) Ping

func (s *BoltdbStore) Ping() error

func (*BoltdbStore) PopulateData

func (s *BoltdbStore) PopulateData(skipDrop bool)

func (*BoltdbStore) ScanTransGlobalStores

func (s *BoltdbStore) ScanTransGlobalStores(position *string, limit int64) []storage.TransGlobalStore

func (*BoltdbStore) TouchCronTime

func (s *BoltdbStore) TouchCronTime(global *storage.TransGlobalStore, nextCronInterval int64)

func (*BoltdbStore) UpdateBranches added in v1.8.0

func (s *BoltdbStore) UpdateBranches(branches []storage.TransBranchStore, updates []string) (int, error)

Jump to

Keyboard shortcuts

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