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.