handler

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SymbolParam     = "symbol"
	ResolutionParam = "res"
	FromParam       = "from"
	ToParam         = "to"
	NameParam       = "name"
	DeltaParam      = "delta"
)
View Source
const (
	QuoteRoute             = "/quote/"
	QuoteRouteWithParams   = QuoteRoute + ":" + SymbolParam
	CandlesRoute           = "/candles/"
	CandlesRouteWithParams = CandlesRoute + ":" +
		SymbolParam + "/:" +
		ResolutionParam + "/:" +
		FromParam + "/:" +
		ToParam
	DeltaCandlesRoute           = "/delta/candles/"
	DeltaCandlesRouteWithParams = DeltaCandlesRoute + ":" +
		SymbolParam + "/:" +
		ResolutionParam + "/:" +
		DeltaParam
)
View Source
const (
	APIRoute = "/api"
)

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(store *store.Store) *echo.Echo

func NewTestHandler

func NewTestHandler(t *testing.T) (func(), *httpexpect.Expect)

Types

type Handler

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

func (*Handler) Candles

func (h *Handler) Candles(ctx echo.Context) error

func (*Handler) DeltaCandles

func (h *Handler) DeltaCandles(ctx echo.Context) error

func (*Handler) Quote

func (h *Handler) Quote(ctx echo.Context) error

Jump to

Keyboard shortcuts

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