types

package
v0.0.0-...-10d2010 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssetInfo

type AssetInfo struct {
	TokenName string   `json:"token_name"`
	Balance   string   `json:"balance"`
	XdaySum   *XdaySum `json:"xday_sum"`
	Price     string   `json:"price"`
}

type AssetInfoData

type AssetInfoData struct {
	AssetInfos []*AssetInfo `json:"asset_infos"`
	UserDid    string       `json:"user_did"`
}

type QueryItems

type QueryItems struct {
	Balance bool   `json:"balance"`
	XdaySum uint32 `json:"xday_sum"`
	Price   bool   `json:"price"`
}

type RequestParam

type RequestParam struct {
	Tokens     []string    `json:"tokens"`
	QueryItems *QueryItems `json:"query_items,omitempty"`
}

func (*RequestParam) Scan

func (self *RequestParam) Scan(src interface{}) error

func (RequestParam) Value

func (self RequestParam) Value() (driver.Value, error)

type ScoreResult

type ScoreResult struct {
	Score uint `json:"score"`
}

type XdaySum

type XdaySum struct {
	Days   uint   `json:"days"`
	Amount string `json:"amount"`
}

Jump to

Keyboard shortcuts

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