Documentation ¶
Index ¶
- Constants
- Variables
- func CheckBooleanValue(val interface{}) bool
- func CheckFloatValue(val interface{}) float64
- func CheckIntValue(val interface{}) int
- func CheckStringValue(val interface{}) string
- func CheckTypeValue(val interface{}) reflect.Kind
- func Colorize(color Color, message string)
- func ColorizeSprintf(color Color, message string) string
- func ConvertPayloadTypeToString(val float64) (string, string)
- func ConvertProtoStringToInt(val string) int
- func ConvertProtoTypeToString(val float64) string
- func ElementExists(arr []string, elem string) bool
- func ElementExistsPosition(arr []string, elem string) int
- func ElementRealExists(arr []string, elem string) bool
- func FileExists(filename string) bool
- func GenCodeChallengeS256(s string) string
- func GenerateToken() string
- func Hash32(s string) uint32
- func Hash64(s string) uint64
- func HashString(s string) uint32
- func IsupToHex(s string) string
- func ItemExists(arr []string, elem string) bool
- func KeyExists(arr []uint32, elem uint32) bool
- func LookupIP(ip string) (string, error)
- func MakeTimestamp() uint64
- func QueryCheck(query string) error
- func Sanitize(text string) string
- func SanitizeIntArray(valArray []string) []int
- func SanitizeProto(text string) string
- func SanitizeTextArray(valArray []string) []string
- func YesNo(table string) bool
- func YesNoPromptText(promptText string) bool
- type Color
- type UUID
Constants ¶
View Source
const ( ColorBlack Color = "\u001b[30m" ColorRed = "\u001b[31m" ColorGreen = "\u001b[32m" ColorYellow = "\u001b[33m" ColorBlue = "\u001b[34m" ColorReset = "\u001b[0m" )
Variables ¶
View Source
var PromCasaLogo = `` /* 680-byte string literal not displayed */
View Source
var UUIDArray = [...]string{"callid", "session_id", "uuid", "sid", "cid", "correlation_id"}
Functions ¶
func ConvertPayloadTypeToString ¶
import convertPayloadTypeToString
func ConvertProtoStringToInt ¶
import convertProtoTypeToString
func ConvertProtoTypeToString ¶
import convertProtoTypeToString
func ElementExistsPosition ¶
check if the element exists
func ElementRealExists ¶
check if the element exists
func FileExists ¶
fileExists checks if a file exists and is not a directory before we try using it to prevent further errors.
func GenerateToken ¶
func GenerateToken() string
func HashString ¶
func LookupIP ¶
LookupIP looks up host using the local resolver. It returns a slice of that host's IPv4 and IPv6 addresses.
func MakeTimestamp ¶
func MakeTimestamp() uint64
func QueryCheck ¶
func SanitizeIntArray ¶
func SanitizeProto ¶
func SanitizeTextArray ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.