application

package
v0.1.127 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2022 License: BSD-3-Clause Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HomeHandler added in v0.1.127

func HomeHandler(w http.ResponseWriter, _ *http.Request)

HomeHandle display the home page

func MagicPathHandler

func MagicPathHandler(next http.Handler) http.Handler

Types

type Application

type Application struct {
	Services map[string]service.Service

	Router http.Handler
	// contains filtered or unexported fields
}

func New

func New(cfg *conf.Conf) (*Application, error)

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(w http.ResponseWriter, r *http.Request)

TaskHandler show a Task

func (*Application) TaskMyBadgeHandler added in v0.1.127

func (a *Application) TaskMyBadgeHandler(w http.ResponseWriter, r *http.Request)

func (*Application) VolumesHandler

func (a *Application) VolumesHandler(basePathLen int) http.HandlerFunc

VolumesHandler expose volumes of a task

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL