Documentation ¶
Index ¶
- func ServeFileHandler(box *packr.Box, filename string) http.Handler
- type API
- func (API *API) AuthorizationMiddleware(handler http.Handler) http.Handler
- func (API *API) ConnectDB(dialect string, dbPath string) *sql.DB
- func (API *API) Init(config *config.Config)
- func (API *API) MountRouters()
- func (API *API) Run(host string, port string)
- func (API *API) SendToSlackMiddleware(handler http.Handler) http.Handler
- type StaticHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type API ¶
type API struct { Router *pat.PatternServeMux DB *sql.DB Token string }
API —
func (*API) AuthorizationMiddleware ¶
AuthorizationMiddleware —
type StaticHandler ¶
type StaticHandler func(w http.ResponseWriter, r *http.Request) error
StaticHandler —
func (StaticHandler) ServeHTTP ¶
func (h StaticHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.