deposit

package
v0.0.0-...-dc0a48c Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 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 Data

type Data struct {
	Code     uint32    `json:"code"`
	Deposits []Deposit `json:"deposits"`
}

type Deposit

type Deposit struct {
	UUID        string `json:"uuid"`
	Asset       string `json:"asset"`
	Amount      string `json:"amount"`
	Txid        string `json:"txid"`
	Status      string `json:"status"`
	FoundAt     int    `json:"found_at"`
	ConfirmedAt int    `json:"confirmed_at"`
}

type Request

type Request struct {
	Asset     string    `url:"asset"`
	Count     int       `url:"count,omitempty"`
	Since     time.Time `url:"-"`
	End       time.Time `url:"-"`
	SinceUnix int64     `url:"since,omitempty"`
	EndUnix   int64     `url:"end,omitempty"`
}

func (*Request) Endpoint

func (req *Request) Endpoint() string

func (*Request) IsAuth

func (req *Request) IsAuth() bool

func (*Request) Method

func (req *Request) Method() string

func (*Request) Path

func (req *Request) Path() string

func (*Request) Payload

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

func (*Request) Query

func (req *Request) Query() string

type Response

type Response struct {
	Success int8 `json:"success"`
	Data    Data `json:"data"`
}

Jump to

Keyboard shortcuts

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