pkgsite

package
v0.0.0-...-ddf9685 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: BSD-3-Clause Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildServer

func BuildServer(ctx context.Context, serverCfg ServerConfig) (*frontend.Server, error)

BuildServer builds a *frontend.Server using the given configuration.

Types

type ServerConfig

type ServerConfig struct {
	Paths                 []string
	GOPATHMode            bool
	UseCache              bool
	CacheDir              string
	UseListedMods         bool
	UseLocalStdlib        bool
	DevMode               bool
	DevModeStaticDir      string
	GoRepoPath            string
	GoDocMode             bool
	RecordCodeWikiMetrics frontend.RecordClickFunc

	Proxy *proxy.Client // client, or nil; controlled by the -proxy flag
}

ServerConfig provides configuration for BuildServer.

Jump to

Keyboard shortcuts

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