debug

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2021 License: BSD-2-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package debug provides an infrastructure for logging debug information and breakpoints.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hook

func Hook(name string, f func(interface{}))

func Log

func Log(fmt string, args ...interface{})

Log prints a message to the debug log (if debug is enabled).

func RemoveHook

func RemoveHook(name string)

func RoundTripper

func RoundTripper(upstream http.RoundTripper) http.RoundTripper

RoundTripper returns a new http.RoundTripper which logs all requests (if debug is enabled). When debug is not enabled, upstream is returned.

func RunHook

func RunHook(name string, context interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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