Documentation ¶
Index ¶
- Constants
- Variables
- func NewRetryRunner(maxTimes int, delay time.Duration, expBackoff bool) *retryRunner
- type Checker
- type ChecksService
- type DefaultCheckers
- type NamedChecker
- type NetworkProvider
- type RetryRunner
- type StatusEvent
- type StatusSupport
- type TokenManagementServiceProvider
- type TokenTransactionDB
Constants ¶
View Source
const Infinitely = -1
Variables ¶
View Source
var ErrMaxRetriesExceeded = errors.New("maximum number of retries exceeded")
Functions ¶
Types ¶
type ChecksService ¶
type ChecksService struct {
// contains filtered or unexported fields
}
func NewChecksService ¶
func NewChecksService(checkers []NamedChecker) *ChecksService
type DefaultCheckers ¶
type DefaultCheckers struct {
// contains filtered or unexported fields
}
type NamedChecker ¶
func NewDefaultCheckers ¶
func NewDefaultCheckers(tmsProvider TokenManagementServiceProvider, networkProvider NetworkProvider, db TokenTransactionDB, tokenDB *tokens.Tokens, tmsID token.TMSID) []NamedChecker
type NetworkProvider ¶
type RetryRunner ¶
RetryRunner receives a function that potentially fails and retries according to the specified strategy
type StatusEvent ¶
type StatusSupport ¶
type StatusSupport struct {
// contains filtered or unexported fields
}
func NewStatusSupport ¶
func NewStatusSupport() *StatusSupport
func (*StatusSupport) AddStatusListener ¶
func (c *StatusSupport) AddStatusListener(txID string, ch chan StatusEvent)
func (*StatusSupport) DeleteStatusListener ¶
func (c *StatusSupport) DeleteStatusListener(txID string, ch chan StatusEvent)
func (*StatusSupport) Notify ¶
func (c *StatusSupport) Notify(event StatusEvent)
type TokenManagementServiceProvider ¶
type TokenManagementServiceProvider interface {
GetManagementService(opts ...token.ServiceOption) (*token.ManagementService, error)
}
type TokenTransactionDB ¶
type TokenTransactionDB interface { GetTokenRequest(txID string) ([]byte, error) Transactions(params driver.QueryTransactionsParams) (driver.TransactionIterator, error) }
Click to show internal directories.
Click to hide internal directories.