Documentation ¶
Index ¶
- func AddSwap(ms *MgoSwap, overwrite bool) (err error)
- func AddSwapDeleted(ms *MgoSwap, overwrite bool) (err error)
- func AddSwapPending(ms *MgoSwap, overwrite bool) (err error)
- func FindSyncedBlockNumber(chain string) (uint64, error)
- func InitSyncedBlockNumber(chain string, number uint64) error
- func InsertSyncedBlockNumber(chain string, number uint64) error
- func MongoServerInit(addrs []string, dbname, user, pass string)
- func RemoveSwapPending(ms *MgoSwap) (err error)
- func TryDoTimes(name string, f func() error) (err error)
- func UpdateSwapPending(swap *MgoSwap)
- func UpdateSyncedBlockNumber(chain string, number uint64) error
- type MgoSwap
- type SyncedBlock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddSwapDeleted ¶
AddSwapDeleted add deleted
func AddSwapPending ¶
AddSwapPending add pending
func FindSyncedBlockNumber ¶
func InitSyncedBlockNumber ¶
func InsertSyncedBlockNumber ¶
func MongoServerInit ¶
MongoServerInit int mongodb server session
func RemoveSwapPending ¶
RemoveSwapPending add remove pending
func TryDoTimes ¶
TryDoTimes try do again if meet error
func UpdateSwapPending ¶
func UpdateSwapPending(swap *MgoSwap)
func UpdateSyncedBlockNumber ¶
Types ¶
type MgoSwap ¶
type MgoSwap struct { Id string `bson:"_id"` //txid PairID string `bson:"pairID"` //"FXSv4" RpcMethod string `bson:"rpcMethod"` //"swap.Swapin" SwapServer string `bson:"swapServer"` ChainID string `bson:"chainid"` LogIndex string `bson:"logIndex"` Chain string `bson:"chain"` Timestamp uint64 `bson:"timestamp"` }
func FindAllSwapPending ¶
FindAllTokenAccounts find accounts
func FindswapPending ¶
--------------- find --------------------------------- FindswapPending find by swap
type SyncedBlock ¶
Click to show internal directories.
Click to hide internal directories.