cache

package
v0.0.0-...-50e54af Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountCache

type AccountCache interface {
	// AddressGet 获取地址
	AddressGet(ctx context.Context, currency string) (address, id string, err error)
	// AddressInset 插入地址池
	AddressInset(ctx context.Context, addrS []*entity.EntityAddressPrivate) (err error)
	// AddressGetTotal 获取地址池数量
	AddressGetTotal(ctx context.Context, currency string) (total int64, err error)
	// AddressIsItOurs 是否监听地址
	AddressIsItOurs(ctx context.Context, addr string) (isItOurs bool, err error)
}

func NewWalletCache

func NewWalletCache(ctx context.Context, redis *redis.Client) AccountCache

Jump to

Keyboard shortcuts

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