health

package
v0.0.0-...-30c84b1 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const BOARDPATH = "/v1/getboardstate"
View Source
const EXCHENGEPATH = "/v1/gethealth"

Variables

This section is empty.

Functions

This section is empty.

Types

type Board

type Board struct {
	Health string `json:"health"`
	State  string `json:"state"`
	Data   struct {
		SpecialQuotation int `json:"special_quotation"`
	} `json:"data,omitempty"`
}

type Exchange

type Exchange struct {
	Status string `json:"status"`
}

type RequestForBoard

type RequestForBoard struct {
	ProductCode types.ProductCode `json:"product_code" url:"product_code"`
}

func NewForBoard

func NewForBoard(product types.ProductCode) *RequestForBoard

func (*RequestForBoard) Method

func (p *RequestForBoard) Method() string

func (*RequestForBoard) Path

func (p *RequestForBoard) Path() string

func (*RequestForBoard) Payload

func (p *RequestForBoard) Payload() []byte

func (*RequestForBoard) Query

func (p *RequestForBoard) Query() string

type RequestForExchange

type RequestForExchange struct {
	ProductCode types.ProductCode `json:"product_code" url:"product_code"`
}

func NewForExchange

func NewForExchange(product types.ProductCode) *RequestForExchange

func (*RequestForExchange) Method

func (p *RequestForExchange) Method() string

func (*RequestForExchange) Path

func (p *RequestForExchange) Path() string

func (*RequestForExchange) Payload

func (p *RequestForExchange) Payload() []byte

func (*RequestForExchange) Query

func (p *RequestForExchange) Query() string

Jump to

Keyboard shortcuts

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