Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*SolanaClientCacheWrapper)
Option is a function that configures the SolanaClientCacheWrapper
func WithCacheClient ¶
func WithCacheClient(cache *cache.Cache) Option
WithCacheClient sets the cache client
func WithRedisClient ¶
func WithRedisClient(redisClient *redis.Client) Option
WithRedisClient inits cache client with given redis connection.
func WithRedisConnectionURL ¶
WithRedisConnectionURL init redis connection and cache client with it.
type SolanaClientCacheWrapper ¶
SolanaClientCacheWrapper is a wrapper for solana client
func NewSolanaClientCacheWrapper ¶
func NewSolanaClientCacheWrapper(c *client.Client, opts ...Option) *SolanaClientCacheWrapper
NewSolanaClientCacheWrapper creates a new instance of SolanaClientCacheWrapper
func (*SolanaClientCacheWrapper) GetTokenMetadata ¶
func (c *SolanaClientCacheWrapper) GetTokenMetadata(ctx context.Context, base58MintAddr string) (*token_metadata.Metadata, error)
GetTokenMetadata returns token metadata. It is used to cache the result of the solana client method.
Click to show internal directories.
Click to hide internal directories.