Documentation ¶
Index ¶
- func Setup(db *gorm.DB) error
- type Instance
- func (i *Instance) AddNewAssets(assets []models.Asset) error
- func (i *Instance) CreateSubscriptions(addresses []blockatlas.Subscription) error
- func (i *Instance) CreateSubscriptionsAssets(associations []models.SubscriptionsAssetAssociation) error
- func (i *Instance) DeleteSubscriptions(addresses []string) error
- func (i *Instance) GetAsset(assetId string) (models.Asset, error)
- func (i *Instance) GetAssetsByIDs(ids []string) ([]models.Asset, error)
- func (i *Instance) GetAssetsFrom(from time.Time) ([]models.Asset, error)
- func (i *Instance) GetLastParsedBlockNumber(coin string) (int64, error)
- func (i *Instance) GetSubscriptions(addresses []string) ([]models.Subscription, error)
- func (i *Instance) GetSubscriptionsByAddressIDs(ids []string, from time.Time) ([]models.SubscriptionsAssetAssociation, error)
- func (i *Instance) MemoryGet(key string) ([]byte, error)
- func (i *Instance) MemorySet(key string, data []byte, exp time.Duration) error
- func (i *Instance) RestoreConnectionWorker(timeout time.Duration, uri string)
- func (i *Instance) SetLastParsedBlockNumber(coin string, num int64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Instance ¶
func (*Instance) AddNewAssets ¶ added in v1.1.14
func (*Instance) CreateSubscriptions ¶ added in v1.1.15
func (i *Instance) CreateSubscriptions(addresses []blockatlas.Subscription) error
func (*Instance) CreateSubscriptionsAssets ¶ added in v1.1.15
func (i *Instance) CreateSubscriptionsAssets(associations []models.SubscriptionsAssetAssociation) error
func (*Instance) DeleteSubscriptions ¶
func (*Instance) GetAssetsByIDs ¶ added in v1.1.14
func (*Instance) GetAssetsFrom ¶ added in v1.1.14
func (*Instance) GetLastParsedBlockNumber ¶
func (*Instance) GetSubscriptions ¶ added in v1.1.4
func (i *Instance) GetSubscriptions(addresses []string) ([]models.Subscription, error)
func (*Instance) GetSubscriptionsByAddressIDs ¶ added in v1.1.15
func (*Instance) RestoreConnectionWorker ¶ added in v1.1.14
Click to show internal directories.
Click to hide internal directories.