nonce

package
v0.0.0-...-cf2d4bb Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2017 License: MIT Imports: 3 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() int64

Get retrives the nonce value

func (*Nonce) GetInc

func (n *Nonce) GetInc() int64

GetInc increments and returns the value of the nonce

func (*Nonce) GetValue

func (n *Nonce) GetValue(exchName string, nanoPrecision bool) Value

GetValue returns a nonce value and can be set as a higher precision. Values stored in an exchange specific hash table using a single locked call.

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

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