user_middleware

package
v0.0.0-...-0eeeb36 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const TIMEZONE_MIDDLEWARE_KEY = "TIMEZONE_MIDDLEWARE_KEY"

Variables

This section is empty.

Functions

func GetTimezoneFromContext

func GetTimezoneFromContext(c *gin.Context) (*time.Location, bool)

GetTimezoneFromContext gets the timezone set in the request context.

func Timezone

func Timezone() gin.HandlerFunc

Timezone setups the default timezone middleware to extract a timezone out of the header or default to Local utilize timezones as defined here: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones

func UUID

func UUID() gin.HandlerFunc

Types

This section is empty.

Jump to

Keyboard shortcuts

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