commonutils

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthLoginWrapperErrorHelper

func AuthLoginWrapperErrorHelper(ctx *fasthttp.RequestCtx, err, username, password string)

func AuthRegisterErrorHelper

func AuthRegisterErrorHelper(ctx *fasthttp.RequestCtx, check, username, password string)

func Check

func Check(err error, method string) bool

func Random

func Random(min int, max int) int

Random initalizate a new seed using the UNIX Nano time and return an integer between the 2 input value

func SetDebugLevel

func SetDebugLevel(level string) log.Level

SetDebugLevel return the LogRus object by the given string

func VerifyCommandLineInput

func VerifyCommandLineInput() datastructures.Configuration

VerifyCommandLineInput is delegated to manage the inputer parameter provide with the input flag from command line

Types

This section is empty.

Jump to

Keyboard shortcuts

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