helper

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GoogleCredentialIsAvailable

func GoogleCredentialIsAvailable() bool

GoogleCredentialIsAvailable will be check credential file exists or not.

func IsRouteFit

func IsRouteFit(patterns [4]string, url string) (bool, map[string]string)

IsRouteFit is using to check route is hitting the provided patterns

func ValidateRange

func ValidateRange(value string, minValue int, maxValue int) bool

ValidateRange is using to value is valid range

Types

type TraceObject

type TraceObject struct {
	HandlerName string
	Parameter   string
	Rq          *fasthttp.RequestCtx
}

TraceObject is using to store information about logged object

func (TraceObject) TimeTrack

func (o TraceObject) TimeTrack(start time.Time)

TimeTrack will be used to calculate elapsed time of execution.

Jump to

Keyboard shortcuts

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