Documentation
¶
Index ¶
Constants ¶
View Source
const ( // value of status SyncTaskStatusUnHandled = "unhandled" SyncTaskStatusUnderway = "underway" SyncTaskStatusCompleted = "completed" // only for follow task // when current_height of follow task add blockNumPerWorkerHandle // less than blockchain current_height, this follow task's status should be set invalid FollowTaskStatusInvalid = "invalid" // taskType SyncTaskTypeCatchUp = "catch_up" SyncTaskTypeFollow = "follow" )
View Source
const (
CollectionNameTxn = "sync_mgo_txn"
)
Variables ¶
This section is empty.
Functions ¶
func ExecCollection ¶
get collection object
func Txn ¶
mgo transaction method detail to see: https://godoc.org/gopkg.in/mgo.v2/txn
Types ¶
Click to show internal directories.
Click to hide internal directories.