Documentation ¶
Index ¶
- func ElementumURL() string
- func GetContextHTTPHost(ctx *gin.Context) string
- func GetHTTPHost() string
- func GetListenAddr(confAutoIP bool, confAutoPort bool, confInterfaces string, confPortMin int, ...) (listenIP, listenIPv6 string, listenPort int, disableIPv6 bool, err error)
- func GetLocalHTTPHost() string
- func GetLocalHost() string
- func InternalProxyURL() string
- func LocalIP() (net.IP, error)
- func RequestUserIP(r *http.Request) string
- func TestRepositoryURL() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ElementumURL ¶
func ElementumURL() string
ElementumURL returns elementum url for external calls
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 GetLocalHost ¶
func GetLocalHost() string
func RequestUserIP ¶
func TestRepositoryURL ¶ added in v0.1.102
func TestRepositoryURL() error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.