fast_helper

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDebug

func GetDebug(ctx *fasthttp.RequestCtx) bool

GetDebug will get debug mode from a http request and return it

func GetFeatTag

func GetFeatTag() bool

func GetPublicKey

func GetPublicKey(ctx *fasthttp.RequestCtx) string

GetPublicKey returns public key from the context

func GetRequestID

func GetRequestID(ctx *fasthttp.RequestCtx) string

GetRequestID will get reqID from a http request and return it as a string

func GetResponseCode

func GetResponseCode(ctx *fasthttp.RequestCtx) int

GetResponseCode returns http response status code from the context

func SetDebug

func SetDebug(ctx *fasthttp.RequestCtx, debug bool)

SetDebug will set debug mode to a http request

func SetRandomRequestID

func SetRandomRequestID(ctx *fasthttp.RequestCtx)

SetRandomRequestID will attach a brand new request ID to a http request

func SetRequestID

func SetRequestID(ctx *fasthttp.RequestCtx, requestID string)

func SetResponseCode

func SetResponseCode(ctx *fasthttp.RequestCtx, code int)

SetResponseCode sets http response status code on the context

Types

type DebugKey

type DebugKey string
const Debug DebugKey = "debug"

Debug is the DebugKey for debug mode

Jump to

Keyboard shortcuts

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