Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrTokenAccountsNotFound = errors.New("no token accounts found")
)
Functions ¶
Types ¶
type Cache ¶
type Cache interface { // Put puts a list of token accounts associated with the given owner. Put(ctx context.Context, owner ed25519.PublicKey, tokenAccounts []ed25519.PublicKey) error // Get gets an owner's token accounts, if it exists in the cache. // // ErrTokenAccountsNotFound is returned if no token accounts were cached for the provided owner. Get(ctx context.Context, owner ed25519.PublicKey) ([]ed25519.PublicKey, error) // Delete removes any cached token accounts for an owner. // // Delete is idempotent. Delete(ctx context.Context, owner ed25519.PublicKey) error }
Click to show internal directories.
Click to hide internal directories.