Documentation ¶
Index ¶
- Constants
- func BindAll(r *mux.Router, db *mongo.Database)
- func Create[T app.Resource](w http.ResponseWriter, r *http.Request, s app.Store[T])
- func Delete[T app.Resource](w http.ResponseWriter, r *http.Request, s app.Store[T])
- func Get[T app.Resource](w http.ResponseWriter, r *http.Request, s app.Store[T])
- func GetAll[T app.Resource](w http.ResponseWriter, r *http.Request, s app.Store[T])
- func NewGetAllBlockInfo() http.Handler
- func NewGetBars(db *mongo.Database) http.Handler
- func NewGetBlockInfo() http.Handler
- func NewStatus() http.Handler
- func Update[T app.Resource](w http.ResponseWriter, r *http.Request, s app.Store[T])
- type CRUDAPI
- func (a *CRUDAPI[T]) Bind(r *mux.Router)
- func (a *CRUDAPI[T]) Create(w http.ResponseWriter, r *http.Request)
- func (a *CRUDAPI[T]) Delete(w http.ResponseWriter, r *http.Request)
- func (a *CRUDAPI[T]) Get(w http.ResponseWriter, r *http.Request)
- func (a *CRUDAPI[T]) GetAll(w http.ResponseWriter, r *http.Request)
- func (a *CRUDAPI[T]) PluralRoute() string
- func (a *CRUDAPI[T]) SingularRoute() string
- func (a *CRUDAPI[T]) Update(w http.ResponseWriter, r *http.Request)
- type ErrorResponse
- type Graphs
- func (a *Graphs) BacktestGraph(w http.ResponseWriter, r *http.Request)
- func (a *Graphs) Bind(r *mux.Router)
- func (a *Graphs) EvalGraph(w http.ResponseWriter, r *http.Request)
- func (a *Graphs) EvalSlope(ctx context.Context, w http.ResponseWriter, cfg *graph.Configuration, ...)
- func (a *Graphs) RunDay(ctx context.Context, w http.ResponseWriter, cfg *graph.Configuration, ...)
- func (a *Graphs) RunGraph(w http.ResponseWriter, r *http.Request)
Constants ¶
View Source
const DefaultTimeZone = "America/New_York"
Variables ¶
This section is empty.
Functions ¶
func NewGetAllBlockInfo ¶
func NewGetBlockInfo ¶
Types ¶
type ErrorResponse ¶
type Graphs ¶
type Graphs struct { *CRUDAPI[*graph.Configuration] DB *mongo.Database }
func (*Graphs) BacktestGraph ¶
func (a *Graphs) BacktestGraph(w http.ResponseWriter, r *http.Request)
func (*Graphs) EvalSlope ¶
func (a *Graphs) EvalSlope( ctx context.Context, w http.ResponseWriter, cfg *graph.Configuration, requestData []byte, )
func (*Graphs) RunDay ¶
func (a *Graphs) RunDay( ctx context.Context, w http.ResponseWriter, cfg *graph.Configuration, requestData []byte, )
Click to show internal directories.
Click to hide internal directories.