rueidica

package
v0.8.1 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) 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) 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) 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) StoreOSSlug

func (r *Rueidica) StoreOSSlug(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