ip

package
v0.1.103 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ElementumURL

func ElementumURL() string

ElementumURL returns elementum url for external calls

func GetContextHTTPHost

func GetContextHTTPHost(ctx *gin.Context) string

GetContextHTTPHost ...

func GetHTTPHost

func GetHTTPHost() string

GetHTTPHost ...

func GetListenAddr

func GetListenAddr(confAutoIP bool, confAutoPort bool, confInterfaces string, confPortMin int, confPortMax int) (listenIP, listenIPv6 string, listenPort int, disableIPv6 bool, err error)

GetListenAddr parsing configuration setted for interfaces and port range and returning IP, IPv6, and port

func GetLocalHTTPHost

func GetLocalHTTPHost() string

GetLocalHTTPHost ...

func GetLocalHost

func GetLocalHost() string

func InternalProxyURL

func InternalProxyURL() string

InternalProxyURL returns internal proxy url

func LocalIP

func LocalIP() (net.IP, error)

LocalIP ...

func RequestUserIP

func RequestUserIP(r *http.Request) string

func TestRepositoryURL added in v0.1.102

func TestRepositoryURL() error

Types

This section is empty.

Jump to

Keyboard shortcuts

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