nonce

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Nonce

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

Nonce struct holds the nonce value

func (*Nonce) Get

func (n *Nonce) Get() Value

Get retrives the nonce value

func (*Nonce) GetInc

func (n *Nonce) GetInc() Value

GetInc increments and returns the value of the nonce

func (*Nonce) Inc

func (n *Nonce) Inc()

Inc increments the nonce value

func (*Nonce) Set

func (n *Nonce) Set(val int64)

Set sets the nonce value

func (*Nonce) String

func (n *Nonce) String() string

String returns a string version of the nonce

type Value

type Value int64

Value is a return type for GetValue

func (Value) String

func (v Value) String() string

String is a Value method that changes format to a string

Jump to

Keyboard shortcuts

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