Documentation ¶
Index ¶
- func GetContractName(ctx context.Context, contractAddress common.Address) (string, error)
- func GetENSName(ctx context.Context, walletAddress common.Address) (string, error)
- func GetFloor(ctx context.Context, address common.Address) (float64, error)
- func GetSalira(ctx context.Context, address common.Address) (float64, error)
- func NewRedisClient(ctx context.Context) *redis.Client
- func NotificationLock(ctx context.Context, txID common.Hash) (bool, error)
- func ReleaseNotificationLock(ctx context.Context, contractAddress common.Address) (string, error)
- func StoreBlurSlug(ctx context.Context, contractAddress common.Address, slug string)
- func StoreContractName(ctx context.Context, contractAddress common.Address, contractName string)
- func StoreENSName(ctx context.Context, walletAddress common.Address, ensName string)
- func StoreFloor(ctx context.Context, address common.Address, value float64)
- func StoreOSSlug(ctx context.Context, contractAddress common.Address, slug string)
- func StoreSalira(ctx context.Context, address common.Address, value float64)
- type GbCache
- func (c *GbCache) CacheCollectionName(collectionAddress common.Address, collectionName string)
- func (c *GbCache) CacheENSName(walletAddress common.Address, ensName string)
- func (c *GbCache) GetCollectionName(collectionAddress common.Address) (string, error)
- func (c *GbCache) GetENSName(walletAddress common.Address) (string, error)
- func (c *GbCache) GetRDB() *redis.Client
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetContractName ¶ added in v0.3.0
func GetENSName ¶ added in v0.0.16
func NewRedisClient ¶ added in v0.0.10
func NotificationLock ¶ added in v0.3.2
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 StoreBlurSlug ¶ added in v0.2.0
func StoreContractName ¶ added in v0.3.0
func StoreENSName ¶ added in v0.2.0
names.
func StoreFloor ¶ added in v0.3.0
numbers.
func StoreOSSlug ¶ added in v0.2.0
slugs.
Types ¶
type GbCache ¶ added in v0.0.9
type GbCache struct {
// contains filtered or unexported fields
}
func (*GbCache) CacheCollectionName ¶ added in v0.0.9
func (*GbCache) CacheENSName ¶ added in v0.0.9
func (*GbCache) GetCollectionName ¶ added in v0.0.9
func (*GbCache) GetENSName ¶ added in v0.0.9
Click to show internal directories.
Click to hide internal directories.