Versions in this module Expand all Collapse all v1 v1.2.0 Jun 10, 2021 Changes in this version + func Setup(db *gorm.DB) error + type Instance struct + Gorm *gorm.DB + MemoryCache *gocache.Cache + func New(url string, log bool) (*Instance, error) + 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