Documentation ¶
Index ¶
- func AuthMiddleware(next http.Handler) http.Handler
- func InitMiddlewares(mux *chi.Mux) *chi.Mux
- func PrometheusMetrics(next http.Handler) http.Handler
- func ResponseWithError(w http.ResponseWriter, e error)
- func ResponseWithList(w http.ResponseWriter, payload interface{})
- func ResponseWithOk(w http.ResponseWriter, payload interface{})
- type ListResponse
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResponseWithError ¶
func ResponseWithError(w http.ResponseWriter, e error)
func ResponseWithList ¶
func ResponseWithList(w http.ResponseWriter, payload interface{})
func ResponseWithOk ¶
func ResponseWithOk(w http.ResponseWriter, payload interface{})
Types ¶
type ListResponse ¶
type ListResponse struct { Object string `json:"object"` Data interface{} `json:"data"` }
Click to show internal directories.
Click to hide internal directories.