lib

package
v1.14.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SHOW_MESSAGES = []DebugLevel{} //ERROR, INFO, MESSAGE} //, DEBUG}

Functions

func ConfigureDebugLevel

func ConfigureDebugLevel()

func FailOnError

func FailOnError(err error, msg string)

func FunctionName

func FunctionName() string

func GetClientTLSConfig added in v1.14.9

func GetClientTLSConfig(proto string) *tls.Config

func GetServerTLSConfig added in v1.14.9

func GetServerTLSConfig(proto string) *tls.Config

func GetURIParameters added in v1.14.9

func GetURIParameters(uri string) (parameters map[string]interface{})

func InArray

func InArray(a string, list []string) bool

func Println

func Println(messageLevel DebugLevel, message ...interface{})

func PrintlnDebug

func PrintlnDebug(message ...interface{})

func PrintlnError

func PrintlnError(message ...interface{})

func PrintlnInfo

func PrintlnInfo(message ...interface{})

func PrintlnMessage

func PrintlnMessage(message ...interface{})

Types

type DebugLevel

type DebugLevel int
const (
	ERROR   DebugLevel = 0
	INFO    DebugLevel = 1
	MESSAGE DebugLevel = 2
	DEBUG   DebugLevel = 3
)

func (DebugLevel) ToInt

func (d DebugLevel) ToInt() int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL