Documentation
¶
Index ¶
- func BooleanValueOr(ptr *bool, varName, defaultVal string) bool
- func GetEnv(varName, defaultVal string) string
- func IPMonitored(publicIP string, allowed, blocked []string) bool
- func LevelMap(ptr *string, varName, defaultVal string) log.Level
- func ValueOr(ptr *string, varName, defaultVal string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BooleanValueOr ¶
BooleanValueOr returns a de-referenced boolean pointer, an environment variable, or a fallback
func IPMonitored ¶ added in v0.8.0
IPMonitored considers configured allowed and blocked ip addresses and inspects a clients public ip address to determine if it should be used for speed and connectivity testing
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.