web

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2026 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Overview

Package web provides the HTTP frontend for slowmonster.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(ctx context.Context, port int, cfg Config) (*http.Server, error)

NewServer creates a configured HTTP server. ctx bounds the lifetime of the poll-guard sweeper started by newHandlers.

Types

type Config

type Config struct {
	PublicKeyFile       string
	PrivateKeyFile      string
	RPDisplayName       string
	RPID                string
	PublicHTTPBaseURL   string
	IssuerURL           string
	RPOrigins           []string
	OAuthScopes         []string
	PollIntervalSeconds int
	CookiesSecure       bool
}

Config holds configuration for the web server.

Jump to

Keyboard shortcuts

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