Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var HttpClient = NewHTTPClient(time.Second * 3)
Construct a http.Client with a 3 second timeout for use in API requests
Functions ¶
func GenerateAPIAddress ¶
Plug the Pi-Hole address and port together to get a full URL
func IsAlive ¶
IsAlive will, given an IP and port, return true or false denoting if the address is alive
func NewHTTPClient ¶
Create a new http.Client with a given timeout duration
func ValidatePiHoleDetails ¶
Do the provided address & port actually point to a live Pi-Hole? Issue #16 @https://github.com/Reeceeboii/Pi-CLI/issues/16
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.