v1

package
v0.0.0-...-def7031 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusAvailable = "available"
)

Response constants

View Source
const (
	V1APIPathPrefix = "/api/v1"
)

Variables

This section is empty.

Functions

func RegisterRoutes

func RegisterRoutes(v1SubRtr *mux.Router, oracle *oracle.Oracle, mChain alice.Chain)

RegisterRoutes register v1 API routes on the provided sub-router.

Types

type HealthZResponse

type HealthZResponse struct {
	Status string `json:"status" yaml:"status"`
	Oracle struct {
		LastSync string `json:"last_sync"`
	} `json:"oracle"`
}

HealthZResponse defines the response type for the healthy API handler.

type PricesResponse

type PricesResponse struct {
	Prices map[string]sdk.Dec `json:"prices"`
}

PricesResponse defines the response type for getting the latest exchange rates from the oracle.

Jump to

Keyboard shortcuts

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