utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TraceIdName = "X-Auv-TraceId"
)

Variables

This section is empty.

Functions

func CreateRotatelogs

func CreateRotatelogs(log_prefix, serviceName, logpath string) *rotatelogs.RotateLogs

func FlateDecode

func FlateDecode(input []byte) (result []byte, err error)

func FlateEncode

func FlateEncode(input string) (result []byte, err error)

func LocalIP

func LocalIP() string

func LocalIPv4s

func LocalIPv4s() ([]string, error)

LocalIPs return all non-loopback IPv4 addresses

func RemoteIP

func RemoteIP(r *http.Request) string

func TraceId

func TraceId(r *http.Request) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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