Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OpsInitFungibleVaultsJob ¶
type OpsInitFungibleVaultsJob struct { Func OpsInitFungibleVaultsJobFunc Address string TokenList []string }
type OpsWorkerPoolService ¶
type OpsWorkerPoolService interface { Start() Stop() AddFungibleInitJob(job OpsInitFungibleVaultsJob) NumWorkers() uint }
func NewWorkerPool ¶
func NewWorkerPool( numWorkers uint, capacity uint, ) OpsWorkerPoolService
type Service ¶
type Service interface { // Retroactive fungible token vault initialization GetMissingFungibleTokenVaults() ([]TokenCount, error) InitMissingFungibleTokenVaults() (string, error) GetWorkerPool() OpsWorkerPoolService }
Service lists all functionality provided by ops service
type ServiceImpl ¶
type ServiceImpl struct {
// contains filtered or unexported fields
}
ServiceImpl implements the ops Service
func (*ServiceImpl) GetMissingFungibleTokenVaults ¶
func (s *ServiceImpl) GetMissingFungibleTokenVaults() ([]TokenCount, error)
GetMissingFungibleTokenVaults returns number of accounts that are missing a configured fungible token vault.
func (*ServiceImpl) GetWorkerPool ¶
func (s *ServiceImpl) GetWorkerPool() OpsWorkerPoolService
func (*ServiceImpl) InitMissingFungibleTokenVaults ¶
func (s *ServiceImpl) InitMissingFungibleTokenVaults() (string, error)
InitMissingFungibleTokenVaults starts job to init missing fungible token vaults.
type Store ¶
type Store interface {
ListAccountsWithMissingVault(tokenName string) (*[]accounts.Account, error)
}
Store defines what ops needs from the database
func NewGormStore ¶
type TokenCount ¶
Click to show internal directories.
Click to hide internal directories.