routes

package
v0.0.0-...-b093a28 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CandleRequest

type CandleRequest struct {
	Base     string `schema:"base,required"`
	Start    uint64 `schema:"start,required"`
	End      uint64 `schema:"end,required"`
	Quote    string `schema:"quote"`
	Exchange string `schema:"exchange"`
}

type CandleResponse

type CandleResponse struct {
	OHLCV []*models.OHLCVMarketData `schema:"ohlcv,required"`
	Error null.String               `schema:"message"`
}

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(
	repo repository.Repository,
) *Handler

func (Handler) GetCandles

func (h Handler) GetCandles(
	w http.ResponseWriter,
	r *http.Request,
)

func (Handler) Ping

func (h Handler) Ping(
	w http.ResponseWriter,
	r *http.Request,
)

Jump to

Keyboard shortcuts

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