Documentation
¶
Index ¶
- func MagicPathHandler(next http.Handler) http.Handler
- type Application
- func (a *Application) BadgeMyTaskHandler(latest bool) http.HandlerFunc
- func (a *Application) HomeHandler() http.HandlerFunc
- func (a *Application) PostTaskHandler(w http.ResponseWriter, r *http.Request)
- func (a *Application) ReadmeHandler(w http.ResponseWriter, r *http.Request)
- func (a *Application) ServiceMiddleware(next http.Handler) http.Handler
- func (a *Application) ServicesHandler(w http.ResponseWriter, r *http.Request)
- func (a *Application) TaskHandler(latest bool) http.HandlerFunc
- func (a *Application) TaskIDHandler(w http.ResponseWriter, r *http.Request)
- func (a *Application) VolumesHandler(basePathLen int, latest bool) http.HandlerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Application ¶
type Application struct { Services map[string]service.Service Router http.Handler // contains filtered or unexported fields }
func (*Application) BadgeMyTaskHandler ¶
func (a *Application) BadgeMyTaskHandler(latest bool) http.HandlerFunc
BadgeMyTaskHandler generates a badge for a given task
func (*Application) HomeHandler ¶
func (a *Application) HomeHandler() http.HandlerFunc
HomeHandler display the home page
func (*Application) PostTaskHandler ¶
func (a *Application) PostTaskHandler(w http.ResponseWriter, r *http.Request)
PostTaskHandler create a Task
func (*Application) ReadmeHandler ¶
func (a *Application) ReadmeHandler(w http.ResponseWriter, r *http.Request)
func (*Application) ServiceMiddleware ¶
func (a *Application) ServiceMiddleware(next http.Handler) http.Handler
Http middleware
func (*Application) ServicesHandler ¶
func (a *Application) ServicesHandler(w http.ResponseWriter, r *http.Request)
ServicesHandler show all services
func (*Application) TaskHandler ¶
func (a *Application) TaskHandler(latest bool) http.HandlerFunc
TaskHandler show a Task
func (*Application) TaskIDHandler ¶
func (a *Application) TaskIDHandler(w http.ResponseWriter, r *http.Request)
TaskIDHandler get a task using it's ID
func (*Application) VolumesHandler ¶
func (a *Application) VolumesHandler(basePathLen int, latest bool) http.HandlerFunc
VolumesHandler expose volumes of a task
Click to show internal directories.
Click to hide internal directories.