http

package
v2.286.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package http provides debug HTTP endpoints for go-service.

This package wires a debug HTTP server with optional handlers such as pprof and other diagnostics. It is intended to be composed into a service during development and operations.

Start with `Module`.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Pattern added in v2.61.0

func Pattern(name env.Name, pattern string) string

Pattern is an alias for http.Pattern.

Types

type ServeMux

type ServeMux struct {
	*http.ServeMux
}

ServeMux wraps http.ServeMux for debug routing.

func NewServeMux

func NewServeMux() *ServeMux

NewServeMux creates a new ServeMux.

Jump to

Keyboard shortcuts

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