cache

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LookuptableCache

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

func NewLookuptableCache

func NewLookuptableCache(solanaRpc *rpc.Client) *LookuptableCache

func (*LookuptableCache) GetAddressLookupTables

func (cache *LookuptableCache) GetAddressLookupTables(ctx context.Context, adressLookupTableAddresses []string) (map[solana.PublicKey]solana.PublicKeySlice, error)

type MessageCache

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

func NewMessageCache

func NewMessageCache() *MessageCache

func (*MessageCache) DelRoute

func (router *MessageCache) DelRoute(chatId int64, messageId int)

func (*MessageCache) GetRoute

func (router *MessageCache) GetRoute(chatId int64, messageId int) (RouteInfo, bool)

func (*MessageCache) SetRoute

func (router *MessageCache) SetRoute(chatId int64, messageId int, route RouteInfo)

type RouteInfo

type RouteInfo struct {
	Path    string
	Context *tgbotapi.Message
}

type TokenMeta

type TokenMeta struct {
	Name     string
	Symbol   string
	Decimals uint8
	Supply   uint64
}

type TokenMetaCache

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

func NewTokenMetaCache

func NewTokenMetaCache(client *rpc.Client) *TokenMetaCache

func (*TokenMetaCache) GetTokenMeta

func (c *TokenMetaCache) GetTokenMeta(ctx context.Context, tokenAddress string) (TokenMeta, error)

Jump to

Keyboard shortcuts

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