Documentation ¶
Overview ¶
Package common outlines common helper methods and types.
Package common outlines common helper methods and types.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DataDir is the global data directory definition. DataDir = getDataDir() // DBDir is the global db directory definition. DBDir = filepath.FromSlash(fmt.Sprintf("%s/db", DataDir)) // LogsDir is the global logs directory definition. LogsDir = filepath.FromSlash(fmt.Sprintf("%s/logs", DataDir)) )
Functions ¶
func CreateDirIfDoesNotExit ¶
CreateDirIfDoesNotExit creates a given directory if it does not already exist.
func GetCtxValue ¶
func GetCtxValue(ctx *fasthttp.RequestCtx, key string) []byte
GetCtxValue fetches the value at a given key in a fasthttp context.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.