rueidica

package
v0.8.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 16, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rueidica

type Rueidica struct {
	rueidis.Client
}

func NewRueidica

func NewRueidica(rdb rueidis.Client) *Rueidica

func (*Rueidica) GetAddressForOSSlug added in v0.8.2

func (r *Rueidica) GetAddressForOSSlug(ctx context.Context, slug string) (string, error)

func (*Rueidica) GetCachedContractName

func (r *Rueidica) GetCachedContractName(ctx context.Context, address common.Address) (string, error)

Wallet/Contract names.

func (*Rueidica) GetCachedENSName

func (r *Rueidica) GetCachedENSName(ctx context.Context, address common.Address) (string, error)

ENS.

func (*Rueidica) GetCachedOSFloor added in v0.7.1

func (r *Rueidica) GetCachedOSFloor(ctx context.Context, address common.Address) (float64, error)

Floors.

func (*Rueidica) GetCachedSalira

func (r *Rueidica) GetCachedSalira(ctx context.Context, address common.Address) (float64, error)

Salira.

func (*Rueidica) GetOSSlugForAddress added in v0.8.2

func (r *Rueidica) GetOSSlugForAddress(ctx context.Context, address common.Address) (string, error)

func (*Rueidica) NotificationLock

func (r *Rueidica) NotificationLock(ctx context.Context, txID common.Hash) (bool, error)

NotificationLock implements a lock to prevent sending multiple notifications for the same event Refactored to use the Redlock algorithm as recommended in the redis SET doc.

func (*Rueidica) NotificationLockWtihDuration

func (r *Rueidica) NotificationLockWtihDuration(ctx context.Context, txID common.Hash, duration time.Duration) (bool, error)

NotificationLockWtihDuration implements a lock to prevent sending multiple notifications for the same event Refactored to use the Redlock algorithm as recommended in the redis SET doc.

func (*Rueidica) StoreAddressForOSSlug added in v0.8.2

func (r *Rueidica) StoreAddressForOSSlug(ctx context.Context, slug string, address common.Address) error

func (*Rueidica) StoreBlurSlug

func (r *Rueidica) StoreBlurSlug(ctx context.Context, address common.Address, slug string) error

func (*Rueidica) StoreContractName

func (r *Rueidica) StoreContractName(ctx context.Context, address common.Address, name string) error

func (*Rueidica) StoreENSName

func (r *Rueidica) StoreENSName(ctx context.Context, address common.Address, name string) error

func (*Rueidica) StoreOSFloor added in v0.7.1

func (r *Rueidica) StoreOSFloor(ctx context.Context, address common.Address, value float64) error

func (*Rueidica) StoreOSSlugForAddress added in v0.8.2

func (r *Rueidica) StoreOSSlugForAddress(ctx context.Context, address common.Address, slug string) error

Slugs.

func (*Rueidica) StoreSalira

func (r *Rueidica) StoreSalira(ctx context.Context, address common.Address, value float64) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL