Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Locker ¶
type Locker interface { Lock(ctx context.Context, 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(ctx context.Context, ids ...*token2.ID) []*token2.ID UnlockByTxID(ctx context.Context, txID string) IsLocked(id *token2.ID) bool }
type LockerProvider ¶
type NewQueryEngineFunc ¶
type NewQueryEngineFunc func() QueryService
type QueryService ¶
type QueryService interface { UnspentTokensIterator(ctx context.Context) (*token.UnspentTokensIterator, error) UnspentTokensIteratorBy(ctx context.Context, id string, tokenType token2.Type) (driver.UnspentTokensIterator, error) GetTokens(ctx context.Context, inputs ...*token2.ID) ([]*token2.Token, error) }
type SelectorService ¶
type SelectorService struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(lockerProvider LockerProvider, c core.ConfigProvider) *SelectorService
func (*SelectorService) SelectorManager ¶
func (s *SelectorService) SelectorManager(tms *token.ManagementService) (token.SelectorManager, error)
Click to show internal directories.
Click to hide internal directories.