Documentation ¶
Index ¶
- func BulkInsert(db *gorm.DB, dbModels interface{}) error
- func RestoreConnectionWorker(database *Instance, timeout time.Duration, uri string)
- type Instance
- func (i *Instance) AddAssociationsForAddress(address string, assets []string, ctx context.Context) error
- func (i *Instance) AddSubscriptionsForNotifications(addresses []string, ctx context.Context) error
- func (i *Instance) DeleteSubscriptionsForNotifications(addresses []string, ctx context.Context) error
- func (i Instance) GetAssetsMapByAddresses(addresses []string, ctx context.Context) (map[string][]string, error)
- func (i Instance) GetAssetsMapByAddressesFromTime(addresses []string, from time.Time, ctx context.Context) (map[string][]string, error)
- func (i *Instance) GetAssociationsByAddresses(addresses []string, ctx context.Context) ([]models.AddressToAssetAssociation, error)
- func (i *Instance) GetAssociationsByAddressesFromTime(addresses []string, from time.Time, ctx context.Context) ([]models.AddressToAssetAssociation, error)
- func (i *Instance) GetLastParsedBlockNumber(coin string, ctx context.Context) (int64, error)
- func (i Instance) GetSubscribedAddressesForAssets(ctx context.Context, addresses []string) ([]models.Address, error)
- func (i *Instance) GetSubscriptionsForNotifications(addresses []string, ctx context.Context) ([]models.NotificationSubscription, error)
- func (i *Instance) SetLastParsedBlockNumber(coin string, num int64, ctx context.Context) error
- func (i *Instance) UpdateAssociationsForExistingAddresses(associations map[string][]string, ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BulkInsert ¶ added in v1.1.9
Example: postgres.BulkInsert(DBWrite, []models.User{...})
Types ¶
type Instance ¶
func (*Instance) AddAssociationsForAddress ¶ added in v1.1.9
func (*Instance) AddSubscriptionsForNotifications ¶ added in v1.1.9
func (*Instance) DeleteSubscriptionsForNotifications ¶ added in v1.1.9
func (Instance) GetAssetsMapByAddresses ¶ added in v1.1.9
func (Instance) GetAssetsMapByAddressesFromTime ¶ added in v1.1.9
func (*Instance) GetAssociationsByAddresses ¶ added in v1.1.9
func (*Instance) GetAssociationsByAddressesFromTime ¶ added in v1.1.9
func (*Instance) GetLastParsedBlockNumber ¶
func (Instance) GetSubscribedAddressesForAssets ¶ added in v1.1.9
func (*Instance) GetSubscriptionsForNotifications ¶ added in v1.1.9
func (*Instance) SetLastParsedBlockNumber ¶
Click to show internal directories.
Click to hide internal directories.