debug

package
v0.0.0-...-8d7bd48 Latest Latest
Warning

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

Go to latest
Published: May 11, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package debug provides handler support for the debugging endpoints.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Mux

func Mux(build string, log *zap.SugaredLogger, db *bun.DB) http.Handler

Mux registers all the debug standard library routes and then custom debug application routes for the service. This bypassing the use of the DefaultServerMux. Using the DefaultServerMux would be a security risk since a dependency could inject a handler into our service without us knowing it.

func StandardLibraryMux

func StandardLibraryMux() *http.ServeMux

StandardLibraryMux registers all the debug routes from the standard library into a new mux bypassing the use of the DefaultServerMux. Using the DefaultServerMux would be a security risk since a dependency could inject a handler into our service without us knowing it.

Types

This section is empty.

Directories

Path Synopsis
Package checkgrp maintains the group of handlers for health checking.
Package checkgrp maintains the group of handlers for health checking.

Jump to

Keyboard shortcuts

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