Documentation ¶
Index ¶
- func ClearTerminal() error
- func Exec(c *fiber.Ctx, command string) (string, error)
- func GenerateToken() string
- func GetIP() string
- func Indicate(format string, a ...interface{}) string
- func Log(c *fiber.Ctx, logs ...string) error
- func Problem(format string, a ...interface{}) string
- func VerifyToken(token string) bool
- type Token
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearTerminal ¶
func ClearTerminal() error
func Exec ¶
Exec run a command in the linux operating system Parameters:
- string (command): takes the command dictated by the request
Return:
- string: the answer given by the system
- error: if there is an error, it is returned so that when the function is used, it can be reported.
func GenerateToken ¶
func GenerateToken() string
GenerateToken using mathematical functions generates a code that will be used as a token. Return:
- string: The token generated in string format
func Log ¶
Log records one or more given commands and saves them to a .txt file Parameters:
- string array: takes the string or several strings and saves them
Return:
- error: if there is an error, it is returned so that when the function is used, it can be reported.
func VerifyToken ¶
VerifyToken uses uuid to generate the token in hash format Return:
- string: returns the token in string format
- error: if there is an error, it is returned so that when the function is used, it can be reported.
Types ¶
Click to show internal directories.
Click to hide internal directories.