Documentation ¶
Index ¶
- 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 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGetAllBlockInfo ¶
func NewGetBlockInfo ¶
Types ¶
type ErrorResponse ¶
Click to show internal directories.
Click to hide internal directories.