Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Default_conf = "./pinguino.yaml"
Default_conf is the config file used by pinguino
var Prod_conf = "/etc/pinguino.yaml"
Prod_conf is the config file used in production by pinguino
Functions ¶
func CheckHTTPGet ¶
CheckHTTPGet function check the content of a URL against a regular expression This function returns a tuple (bool, error)
func CheckPing ¶
CheckPing function will ping an IP, this function is not implemented yet This function returns a tuple (bool, error)
func LoadConfig ¶
LoadConfig load the configuration from the conf file and set the configuration inside the structure config It will returns boolean, true if the yaml config load is successful it will 'panic' otherwise
func RunCommand ¶
RunCommand run the command received as parameter, a tuple []string is expected or a single command element It returns boolean, true if the command is passed to sh.Command