Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NonceStorage ¶
type NonceStorage struct {
Client *redis.Client
}
func NewNonceStorage ¶
func NewNonceStorage(client *redis.Client) NonceStorage
func (*NonceStorage) GetNonce ¶
func (r *NonceStorage) GetNonce(signerAddress string) (uint64, error)
GetNonce returns the saved nonce for the given signer address. While signer address will generally be a go-ethereum/common.Address, no verification happens at the redis storage level. Any string can be used for the signerAddress.
type SchemaStorage ¶
type SchemaStorage struct {
Client *redis.Client
}
func NewSchemaStorage ¶
func NewSchemaStorage(client *redis.Client) SchemaStorage
Click to show internal directories.
Click to hide internal directories.