middleware

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthMiddleware

func AuthMiddleware(next http.Handler) http.Handler

func ContextMiddleware added in v0.0.4

func ContextMiddleware(next http.Handler) http.Handler

Types

type CustomLogEntry

type CustomLogEntry struct {
	Request *http.Request
}

func (*CustomLogEntry) Panic

func (c *CustomLogEntry) Panic(v interface{}, stack []byte)

func (*CustomLogEntry) Write

func (c *CustomLogEntry) Write(status int, bytes int, header http.Header, elapsed time.Duration, extra interface{})

type LogMiddleware

type LogMiddleware struct{}

func (*LogMiddleware) NewLogEntry

func (l *LogMiddleware) NewLogEntry(r *http.Request) middleware.LogEntry

Jump to

Keyboard shortcuts

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