httputils

package
v0.0.0-...-401e8d7 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2023 License: MIT Imports: 7 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChiLogger

func ChiLogger(l *zap.Logger) func(next http.Handler) http.Handler

ChiLogger is a middleware used to log requests the format is based off of GIN's logger. It uses zap to make the logs.

func ReadUserIP

func ReadUserIP(r *http.Request) string

ReadUserIP returns the user IP of the request

Types

This section is empty.

Jump to

Keyboard shortcuts

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