Documentation
¶
Index ¶
- func ElementumURL(xbmcHost *xbmc.XBMCHost) string
- func GetContextHTTPHost(ctx *gin.Context) string
- func GetHTTPHost(xbmcHost *xbmc.XBMCHost) string
- func GetInterfaceAddrs(input string) (v4 net.IP, v6 net.IP, err error)
- 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 GetPossibleGateways(addr net.IP) (ret []net.IP)
- func InternalProxyURL(xbmcHost *xbmc.XBMCHost) string
- func IsAddrLocal(ip net.IP) bool
- func LocalIP(xbmcHost *xbmc.XBMCHost) (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 ¶
ElementumURL returns elementum url for external calls
func GetInterfaceAddrs ¶ added in v0.1.107
GetInterfaceAddrs returns IPv4 and IPv6 for an interface string.
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 GetPossibleGateways ¶ added in v0.1.107
GetPossibleGateways calculates possible gateways for interface IP
func InternalProxyURL ¶
InternalProxyURL returns internal proxy url
func IsAddrLocal ¶ added in v0.1.107
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.