subaccount

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Balance

type Balance struct {
	Coin  string  `json:"coin"`
	Free  float64 `json:"free"`
	Total float64 `json:"total"`
}

type RequestForBalanceSubAccount

type RequestForBalanceSubAccount struct {
	NickName string
}

func (*RequestForBalanceSubAccount) Method

func (req *RequestForBalanceSubAccount) Method() string

func (*RequestForBalanceSubAccount) Path

func (req *RequestForBalanceSubAccount) Path() string

func (*RequestForBalanceSubAccount) Payload

func (req *RequestForBalanceSubAccount) Payload() []byte

func (*RequestForBalanceSubAccount) Query

func (req *RequestForBalanceSubAccount) Query() string

type RequestForChangeSubAccount

type RequestForChangeSubAccount struct {
	NickName    string `json:"nickname"`
	NewNickname string `json:"newNickname"`
}

func (*RequestForChangeSubAccount) Method

func (req *RequestForChangeSubAccount) Method() string

func (*RequestForChangeSubAccount) Path

func (req *RequestForChangeSubAccount) Path() string

func (*RequestForChangeSubAccount) Payload

func (req *RequestForChangeSubAccount) Payload() []byte

func (*RequestForChangeSubAccount) Query

func (req *RequestForChangeSubAccount) Query() string

type RequestForCreateSubAccount

type RequestForCreateSubAccount struct {
	NickName string `json:"nickname"`
}

func (*RequestForCreateSubAccount) Method

func (req *RequestForCreateSubAccount) Method() string

func (*RequestForCreateSubAccount) Path

func (req *RequestForCreateSubAccount) Path() string

func (*RequestForCreateSubAccount) Payload

func (req *RequestForCreateSubAccount) Payload() []byte

func (*RequestForCreateSubAccount) Query

func (req *RequestForCreateSubAccount) Query() string

type RequestForDeleteSubAccount

type RequestForDeleteSubAccount struct {
	NickName string `json:"nickname"`
}

func (*RequestForDeleteSubAccount) Method

func (req *RequestForDeleteSubAccount) Method() string

func (*RequestForDeleteSubAccount) Path

func (req *RequestForDeleteSubAccount) Path() string

func (*RequestForDeleteSubAccount) Payload

func (req *RequestForDeleteSubAccount) Payload() []byte

func (*RequestForDeleteSubAccount) Query

func (req *RequestForDeleteSubAccount) Query() string

type RequestForSubAccounts

type RequestForSubAccounts struct {
}

func (*RequestForSubAccounts) Method

func (req *RequestForSubAccounts) Method() string

func (*RequestForSubAccounts) Path

func (req *RequestForSubAccounts) Path() string

func (*RequestForSubAccounts) Payload

func (req *RequestForSubAccounts) Payload() []byte

func (*RequestForSubAccounts) Query

func (req *RequestForSubAccounts) Query() string

type RequestForTransferSubAccount

type RequestForTransferSubAccount struct {
	Coin string  `json:"coin"`
	Size float64 `json:"size"`
	// out account name
	Source string `json:"source"`
	// in account name
	Destination string `json:"destination"`
}

func (*RequestForTransferSubAccount) Method

func (req *RequestForTransferSubAccount) Method() string

func (*RequestForTransferSubAccount) Path

func (*RequestForTransferSubAccount) Payload

func (req *RequestForTransferSubAccount) Payload() []byte

func (*RequestForTransferSubAccount) Query

func (req *RequestForTransferSubAccount) Query() string

type ResponseForBalanceSubAccount

type ResponseForBalanceSubAccount []Balance

type ResponseForChangeSubAccount

type ResponseForChangeSubAccount string

type ResponseForCreateSubAccount

type ResponseForCreateSubAccount SubAccount

type ResponseForDeleteSubAccount

type ResponseForDeleteSubAccount string

type ResponseForSubAccounts

type ResponseForSubAccounts []SubAccount

type ResponseForTransferSubAccount

type ResponseForTransferSubAccount struct {
	ID     int    `json:"id"`
	Coin   string `json:"coin"`
	Status string `json:"status"`
	Notes  string `json:"notes"`

	Size float64 `json:"size"`

	Time time.Time `json:"time"`
}

type SubAccount

type SubAccount struct {
	Nickname  string `json:"nickname"`
	Deletable bool   `json:"deletable"`
	Editable  bool   `json:"editable"`
}

Jump to

Keyboard shortcuts

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