Documentation ¶
Index ¶
- Constants
- Variables
- func NewHandler(store *store.Store) *echo.Echo
- func NewTestHandler(t *testing.T) (func(), *httpexpect.Expect)
- type Handler
- func (h *Handler) Candles(ctx echo.Context) error
- func (h *Handler) CreateNote(ctx echo.Context) error
- func (h *Handler) DeleteNote(ctx echo.Context) error
- func (h *Handler) GetNote(ctx echo.Context) error
- func (h *Handler) ListNotes(ctx echo.Context) error
- func (h *Handler) Peers(ctx echo.Context) error
- func (h *Handler) Quote(ctx echo.Context) error
- func (h *Handler) RecommendationTrends(ctx echo.Context) error
- func (h *Handler) UpdateNote(ctx echo.Context) error
Constants ¶
View Source
const ( SymbolParam = "symbol" ResolutionParam = "res" FromParam = "from" ToParam = "to" NameParam = "name" )
View Source
const ( QuoteRoute = "/quote/" QuoteRouteWithParams = QuoteRoute + ":" + SymbolParam CandlesRoute = "/candles/" CandlesRouteWithParams = CandlesRoute + ":" + SymbolParam + "/:" + ResolutionParam + "/:" + FromParam + "/:" + ToParam RecommendationTrendsRoute = "/recommendation/trends/" RecommendationTrendsRouteWithParams = RecommendationTrendsRoute + ":" + SymbolParam PeersRoute = "/peers/" PeersRouteWithParams = PeersRoute + ":" + SymbolParam NotesRoute = "/notes" NotesRouteWithParams = NotesRoute + "/:" + NameParam )
View Source
const ( Minute = "1" Hour = "60" Day = "D" Month = "M" )
View Source
const ( ComponentsRoute = "/components" APIRoute = "/api" )
Variables ¶
Functions ¶
func NewHandler ¶
func NewTestHandler ¶
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (*Handler) CreateNote ¶ added in v0.7.1
func (*Handler) DeleteNote ¶ added in v0.7.1
func (*Handler) RecommendationTrends ¶
func (*Handler) UpdateNote ¶ added in v0.7.1
Click to show internal directories.
Click to hide internal directories.