Documentation
¶
Index ¶
- func NewManager(locker Locker, newQueryEngine NewQueryEngineFunc, numRetry int, ...) *manager
- func NewProvider(sp view.ServiceProvider, lockerProvider LockerProvider, numRetry int, ...) *selectorService
- type Cache
- type Locker
- type LockerProvider
- type NewQueryEngineFunc
- type QueryService
- type Repository
- type Tracer
- type Transaction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewManager ¶
func NewProvider ¶
func NewProvider(sp view.ServiceProvider, lockerProvider LockerProvider, numRetry int, timeout time.Duration) *selectorService
Types ¶
type Locker ¶
type Locker interface { Lock(id *token2.ID, txID string, reclaim bool) (string, error) // UnlockIDs unlocks the passed IDS. It returns the list of tokens that were not locked in the first place among // those passed. UnlockIDs(ids ...*token2.ID) []*token2.ID UnlockByTxID(txID string) IsLocked(id *token2.ID) bool }
type LockerProvider ¶
type NewQueryEngineFunc ¶
type NewQueryEngineFunc func() QueryService
type QueryService ¶
type Repository ¶
type Repository interface {
Next(typ string, of token.OwnerFilter) (*token2.UnspentToken, error)
}
Click to show internal directories.
Click to hide internal directories.