middleware

package
Version: v0.0.0-...-3051362 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hostname

func Hostname(c *gin.Context)

Hostname gets the hostname from os and adds the hostname to request context

func HostnameWithoutRequestContext

func HostnameWithoutRequestContext(c context.Context) context.Context

HostnameWithoutRequestContext gets the hostname os and add it to app context

func Logger

func Logger(c *gin.Context)

Logger sets up a new logger with request information

func LoggerWithoutRequestContext

func LoggerWithoutRequestContext(c context.Context) context.Context

LoggerWithoutRequestContext sets up a new logger with application context

func NoRequestContext

func NoRequestContext(c context.Context) context.Context

NoRequestContext sets up a new application context based on a context

func RefreshRequestIDContext

func RefreshRequestIDContext(c context.Context) context.Context

RefreshRequestIDContext refresh requestID in application context

func RequestID

func RequestID(c *gin.Context)

RequestID adds request-id to the request context.

func RequestIDWithNoRequestContext

func RequestIDWithNoRequestContext(c context.Context) context.Context

RequestIDWithNoRequestContext sets up request-id to application context

Types

This section is empty.

Jump to

Keyboard shortcuts

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