Versions in this module Expand all Collapse all v0 v0.5.0 Jul 17, 2025 Changes in this version type DefaultCheckers + func (a *DefaultCheckers) CheckTokenSpendability(ctx context.Context) ([]string, error) + func (a *DefaultCheckers) CheckTransactions(ctx context.Context) ([]string, error) + func (a *DefaultCheckers) CheckUnspentTokens(ctx context.Context) ([]string, error) v0.4.0 Jan 7, 2025 Changes in this version + const Infinitely + var ErrMaxRetriesExceeded = errors.New("maximum number of retries exceeded") + func NewRetryRunner(maxTimes int, delay time.Duration, expBackoff bool) *retryRunner + type Checker = func(context context.Context) ([]string, error) + type ChecksService struct + func NewChecksService(checkers []NamedChecker) *ChecksService + func (a *ChecksService) Check(context context.Context) ([]string, error) + type DefaultCheckers struct + type NamedChecker struct + Checker Checker + Name string + func NewDefaultCheckers(tmsProvider TokenManagementServiceProvider, networkProvider NetworkProvider, ...) []NamedChecker + type NetworkProvider interface + GetNetwork func(network string, channel string) (*network.Network, error) + type RetryRunner interface + Run func(func() error) error + type StatusEvent struct + Ctx context.Context + TxID string + ValidationCode driver.TxStatus + ValidationMessage string + type StatusSupport struct + func NewStatusSupport() *StatusSupport + func (c *StatusSupport) AddStatusListener(txID string, ch chan StatusEvent) + func (c *StatusSupport) DeleteStatusListener(txID string, ch chan StatusEvent) + func (c *StatusSupport) Notify(event StatusEvent) + type TokenManagementServiceProvider interface + GetManagementService func(opts ...token.ServiceOption) (*token.ManagementService, error) + type TokenTransactionDB interface + GetTokenRequest func(txID string) ([]byte, error) + Transactions func(params driver.QueryTransactionsParams) (driver.TransactionIterator, error)