quickweb

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Overview

Package quickweb implements the Quickweb internal applet server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, argv0 string, args []string) error

Run executes quickweb with argv0 and args.

Types

type Config

type Config struct {
	ContentRoot string
	DBPath      string
	Addr        string
	ServiceName string
	BaseURL     string
}

Config describes a Quickweb server instance.

type Server

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

Server is a Quickweb HTTP server.

func NewServer

func NewServer(cfg Config, root *osRoot, db *sql.DB, candidateURLs []string, migrationOK bool) *Server

NewServer constructs a Quickweb server.

func (*Server) Handler

func (s *Server) Handler() http.Handler

Handler returns the HTTP handler for this server.

Jump to

Keyboard shortcuts

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