balance

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Exported

type Exported struct {
	Currency  string `json:"currency"`
	Available int64  `json:"available"`
	Pending   int64  `json:"pending,omitempty"`
}

type T

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

func New

func New(cur string) *T

func (*T) Add

func (t *T) Add(x *big.Rat)

func (*T) Book

func (t *T) Book(delta int64) error

func (*T) Cancel

func (t *T) Cancel()

func (*T) Commit

func (t *T) Commit() (n int64)

func (*T) Export

func (t *T) Export() (r Exported)

func (*T) MarshalJSON

func (t *T) MarshalJSON() ([]byte, error)

func (*T) UnmarshalJSON

func (t *T) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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