Documentation ¶
Index ¶
- type Noncestore
- type Opts
- type RedisNoncestore
- func (n *RedisNoncestore) Acquire(ctx context.Context, publicKey string) (uint64, error)
- func (n *RedisNoncestore) Peek(ctx context.Context, publicKey string) (uint64, error)
- func (n *RedisNoncestore) Return(ctx context.Context, publicKey string) error
- func (n *RedisNoncestore) SetAccountNonce(ctx context.Context, publicKey string, nonce uint64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Noncestore ¶
type Noncestore interface { Peek(context.Context, string) (uint64, error) Acquire(context.Context, string) (uint64, error) Return(context.Context, string) error SetAccountNonce(context.Context, string, uint64) error }
Noncestore defines how a nonce store should be implemented for any storage backend.
func NewRedisNoncestore ¶
func NewRedisNoncestore(o Opts) Noncestore
type RedisNoncestore ¶
type RedisNoncestore struct {
// contains filtered or unexported fields
}
RedisNoncestore implements `Noncestore`
func (*RedisNoncestore) Return ¶
func (n *RedisNoncestore) Return(ctx context.Context, publicKey string) error
func (*RedisNoncestore) SetAccountNonce ¶
Click to show internal directories.
Click to hide internal directories.