network

package
v0.0.49 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: Apache-2.0 Imports: 5 Imported by: 5

Documentation

Index

Constants

View Source
const (
	XForwardedFor = "X-Forwarded-For"
	XRealIP       = "X-Real-IP"
	XClientIP     = "x-client-ip"
)

Define http headers.

Variables

This section is empty.

Functions

func GetListenIP

func GetListenIP(configIP string) string

func GetLocalIP

func GetLocalIP() (string, error)

func GetRpcRegisterIP

func GetRpcRegisterIP(configIP string) (string, error)

func RemoteIP

func RemoteIP(req *http.Request) string

RemoteIP returns the remote 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