zvelo

package
v1.15.4 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2019 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DebugContextOut added in v1.10.0

func DebugContextOut(ctx context.Context, w io.Writer)

DebugContextOut logs outgoing metadata headers to w

func DebugHandler added in v1.7.0

func DebugHandler(w io.Writer, next http.Handler) http.Handler

DebugHandler returns an http.Handler that debugs incoming requests to w. next is called after writing to the debug writer.

func DebugMD added in v1.10.0

func DebugMD(w io.Writer, mds ...metadata.MD)

DebugMD logs received metadata headers to w

func DebugRequest

func DebugRequest(w io.Writer, req *http.Request)

DebugRequest logs incoming http.Requests to w

func DebugRequestOut

func DebugRequestOut(w io.Writer, req *http.Request)

DebugRequestOut logs outgoing http.Requests to w

func DebugRequestTiming added in v1.10.0

func DebugRequestTiming(w io.Writer, req *http.Request) *http.Request

DebugRequestTiming logs http request timing to w

func DebugResponse

func DebugResponse(w io.Writer, resp *http.Response, body bool)

DebugResponse logs received http.Responses to w

func DebugTiming added in v1.10.0

func DebugTiming(w io.Writer, name string, dur time.Duration)

DebugTiming logs timing information to w

func RandString

func RandString(n int) string

RandString returns a random string of length n

Types

type Handler

type Handler interface {
	http.Handler
	Endpoint(url string) oauth2.Endpoint
}

func MockOAuth2Handler

func MockOAuth2Handler() Handler

Jump to

Keyboard shortcuts

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