package
0.0.0-20250331114127-736dde6625db
Repository: https://github.com/sdslabs/gasper.git
Documentation: pkg.go.dev
# Functions
CompareHashWithPassword returns true if given password matches with the hash and false otherwise.
Contains check if an string is present in the given string array.
GetFreePort asks the kernel for a free open port that is ready to use.
GetFreePorts asks the kernel for free open ports that are ready to use.
GetMapKeys returns the keys present in a map.
GetOutboundIP returns the preferred outbound IP of this machine.
HashPassword creates the hash of the password to be stored in database.
IsGenDNSAlive checks if a GenDNS instance is alive or not.
IsValidPort checks if the port is valid and free to use.
Log logs to the console with your custom TAG.
LogDebug logs debug messages to console.
LogError logs type error to console.
LogInfo logs information to the console.
LogResErr logs type ResponseError to console.
NewScheduler returns a pointer to a Scheduler object.
NewTarArchiveFromContent returns an io.Reader type tar archive from content in []byte.
NewTarArchiveFromPath returns an io.Reader type tar archive from content in given path.
NotAlive checks if a given instance is alive or not.
QueryToFilter filters out queries from the URL parameters.
SendServerErrorResponse sends internal server error messages to the client depending on development mode or production mode.
ToStringSlice converts interface{} to []string.
# Variables
HostIP variable stores the IPv4 address of the host machine.