types

package
v0.0.0-...-1762b78 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Column

type Column int

Column is a custom type for database columns.

type ContextKey

type ContextKey string

ContextKey represents the key that has been used to add a value to the context.

type HTTPReqInfo

type HTTPReqInfo struct {
	Method  string
	Referer string

	XForwardedFor string
	UserAgent     string
	IPAddr        string

	Code     int
	Size     int64
	Duration time.Duration
}

type Instrument

type Instrument struct {
	Base  string
	Quote string
}

Instrument — a particular configuration of assets that you can trade in one way or another. E.g. “BTC/USDT spot” is an instrument. The “spot” part is the contract type, meaning that Bitcoins can be immediately exchanged to Tethers and vice versa, according to some exchange rate.

func (Instrument) Symbol

func (i Instrument) Symbol() string

Symbol return instrument symbol.

type Ordering

type Ordering string

Ordering is a custom type that represents order column and ordering type.

func (Ordering) OrderType

func (o Ordering) OrderType() string

OrderType returns ordering type, it can be descending or ascending. If ordering object started with '-' this method returns 'DESC' , otherwise returns 'ASC`

func (Ordering) String

func (o Ordering) String() string

type ValidateTokenResponse

type ValidateTokenResponse struct {
	User           string `json:"user"`
	IsValid        bool   `json:"is_valid"`
	NotValidReason string `json:"not_valid_reason"`
}

Jump to

Keyboard shortcuts

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