cache

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetContractName added in v0.3.0

func GetContractName(contractAddress common.Address) (string, error)

func GetENSName added in v0.0.16

func GetENSName(walletAddress common.Address) (string, error)

func GetFloor added in v0.3.0

func GetFloor(address common.Address) (float64, error)

func GetSalira added in v0.3.0

func GetSalira(address common.Address) (float64, error)

func NewRedisClient added in v0.0.10

func NewRedisClient() *redis.Client

func NotificationLock added in v0.3.2

func NotificationLock(txID common.Hash) (bool, error)

NotificationLock implements a lock to prevent sending multiple notifications for the same event see https://redis.io/docs/manual/patterns/distributed-locks/#correct-implementation-with-a-single-instance

func ReleaseNotificationLock added in v0.3.2

func ReleaseNotificationLock(contractAddress common.Address) (string, error)

func StoreBlurSlug added in v0.2.0

func StoreBlurSlug(contractAddress common.Address, slug string)

func StoreContractName added in v0.3.0

func StoreContractName(contractAddress common.Address, contractName string)

func StoreENSName added in v0.2.0

func StoreENSName(walletAddress common.Address, ensName string)

func StoreFloor added in v0.3.0

func StoreFloor(address common.Address, value float64)

func StoreOSSlug added in v0.2.0

func StoreOSSlug(contractAddress common.Address, slug string)

func StoreSalira added in v0.3.0

func StoreSalira(address common.Address, value float64)

Types

type GbCache added in v0.0.9

type GbCache struct {
	// contains filtered or unexported fields
}

func New added in v0.0.9

func New() *GbCache

func (*GbCache) CacheCollectionName added in v0.0.9

func (c *GbCache) CacheCollectionName(collectionAddress common.Address, collectionName string)

func (*GbCache) CacheENSName added in v0.0.9

func (c *GbCache) CacheENSName(walletAddress common.Address, ensName string)

func (*GbCache) GetCollectionName added in v0.0.9

func (c *GbCache) GetCollectionName(collectionAddress common.Address) (string, error)

func (*GbCache) GetENSName added in v0.0.9

func (c *GbCache) GetENSName(walletAddress common.Address) (string, error)

func (*GbCache) GetRDB added in v0.0.9

func (c *GbCache) GetRDB() *redis.Client

func (*GbCache) StoreEvent added in v0.0.12

func (c *GbCache) StoreEvent(contractAddress common.Address, collectionName string, tokenID *big.Int, priceWei uint64, numItems uint64, eventTime time.Time, eventType int64)

Jump to

Keyboard shortcuts

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