reqdata

package
v0.0.0-...-3c02646 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2021 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextFromRequest

func ContextFromRequest(req *http.Request) context.Context

ContextFromRequest applies the request data into the context to be later retrieved throughout the application.

func IPAddressFromContext

func IPAddressFromContext(ctx context.Context) string

IPAddressFromContext returns the IP address from an HTTP request if one exists.

Types

This section is empty.

Jump to

Keyboard shortcuts

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