server

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: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand() *cli.Command

NewCommand creates the server CLI command.

Types

type Config

type Config struct {
	Addr               string
	DatabaseConnString string

	// SecretKey is the key used to sign experiment responses.
	SecretKey string

	// TesterTimeout defines how long an experiment is allowed to run.
	TesterTimeout time.Duration

	// MaxPendingCommands defines the size of the spawner command queue.
	MaxPendingCommands int
	// MaxProcesses defines the number of simultaneous processes executing spawner commands.
	MaxProcesses int
}

Config holds the Server configuration.

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server serves the traefik-playground service.

func New

func New(config Config) (*Server, error)

New creates a new Server.

func (*Server) Start

func (s *Server) Start(ctx context.Context) error

Start starts the server.

Jump to

Keyboard shortcuts

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