debug

package
v1.27.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(dispatcher *yarpc.Dispatcher, opts ...Option) http.HandlerFunc

NewHandler returns a http.HandlerFunc to expose dispatcher status and package versions.

Types

type Option

type Option interface {
	// contains filtered or unexported methods
}

Option is an interface for customizing debug handlers.

func Logger

func Logger(logger *zap.Logger) Option

Logger specifies the logger that should be used to log. Default value is noop zap logger.

Jump to

Keyboard shortcuts

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