app

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Package app holds the definition of the web application.

Index

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) MountOn

func (a *App) MountOn(mux *http.ServeMux)

MountOn mounts the UI handler on the given muxer.

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.

Jump to

Keyboard shortcuts

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