Documentation ¶
Index ¶
- func Setup(db *gorm.DB) error
- type Instance
- func (i *Instance) AddNewAssets(assets []models.Asset) error
- func (i *Instance) CreateSubscriptions(addresses []types.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) (models.Tracker, error)
- func (i *Instance) GetLastParsedBlockNumbers() ([]models.Tracker, 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) SetLastParsedBlockNumber(coin string, num int64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Instance ¶
func (*Instance) CreateSubscriptions ¶
func (i *Instance) CreateSubscriptions(addresses []types.Subscription) error
func (*Instance) CreateSubscriptionsAssets ¶
func (i *Instance) CreateSubscriptionsAssets(associations []models.SubscriptionsAssetAssociation) error
func (*Instance) DeleteSubscriptions ¶
func (*Instance) GetAssetsByIDs ¶
func (*Instance) GetAssetsFrom ¶
func (*Instance) GetLastParsedBlockNumber ¶
func (*Instance) GetLastParsedBlockNumbers ¶
func (*Instance) GetSubscriptions ¶
func (i *Instance) GetSubscriptions(addresses []string) ([]models.Subscription, error)
func (*Instance) GetSubscriptionsByAddressIDs ¶
Click to show internal directories.
Click to hide internal directories.