Documentation
¶
Index ¶
- func CheckIfPathExist(path string) bool
- func CheckIfServiceIsActive(serv string) (bool, error)
- func CleanString(s string) string
- func CreateLogger(filename string) *logger.Logger
- func Execute(c string, dir string, arg ...string) error
- func ExecuteWithResult(c string, dir string, arg ...string) (string, bool)
- func GetMyPath() (string, error)
- func RestartService(serv string) error
- func StopService(name string) error
- func UninstallService(name string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckIfPathExist ¶
func CheckIfServiceIsActive ¶
CheckIfServiceIsActive checks if a service is active or running
func CleanString ¶
func CreateLogger ¶
CreateLogger returns a single instance of a Logger configured to save logs to a rotating file.
func GetMyPath ¶
GetMyPath returns the directory path where the currently running executable is located. Returns a string representing the directory path, and an error if any error occurs during the process.
func StopService ¶
func UninstallService ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.