Documentation
¶
Overview ¶
Package app holds the definition of the web application.
Index ¶
- type App
- func (a *App) Experiment(rw http.ResponseWriter, req *http.Request)
- func (a *App) ExportExperiment(rw http.ResponseWriter, req *http.Request)
- func (a *App) Info(rw http.ResponseWriter, req *http.Request)
- func (a *App) MountOn(mux *http.ServeMux)
- func (a *App) RunExperiment(rw http.ResponseWriter, req *http.Request)
- func (a *App) ShareExperiment(rw http.ResponseWriter, req *http.Request)
- func (a *App) SharedExperiment(rw http.ResponseWriter, req *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App is the web application.
func New ¶
func New(controller *experiment.Controller, secretKey string) (*App, error)
New creates a new App.
func (*App) Experiment ¶
func (a *App) Experiment(rw http.ResponseWriter, req *http.Request)
Experiment serves the experiment page.
func (*App) ExportExperiment ¶
func (a *App) ExportExperiment(rw http.ResponseWriter, req *http.Request)
ExportExperiment exports an experiment as a docker-compose file.
func (*App) Info ¶
func (a *App) Info(rw http.ResponseWriter, req *http.Request)
Info serves the info page.
func (*App) RunExperiment ¶
func (a *App) RunExperiment(rw http.ResponseWriter, req *http.Request)
RunExperiment runs an experiment.
func (*App) ShareExperiment ¶
func (a *App) ShareExperiment(rw http.ResponseWriter, req *http.Request)
ShareExperiment shares an experiment.
func (*App) SharedExperiment ¶
func (a *App) SharedExperiment(rw http.ResponseWriter, req *http.Request)
SharedExperiment serves a shared experiment.
Click to show internal directories.
Click to hide internal directories.