Documentation ¶
Index ¶
- Variables
- func ClientId(ctx context.Context) string
- func ClientIdEC(ec echo.Context) string
- func GenerateUUIDV4() string
- func Id(ctx context.Context) string
- func IdEC(ec echo.Context) string
- func IdECWithFlag(ec echo.Context, parse bool) string
- func IdECWithFlagAndSuffix(ec echo.Context, parse bool, suffix string) string
- func IdWithFlag(ctx context.Context, parse bool) string
- func IdWithFlagAndSuffix(ctx context.Context, parse bool, suffix string) string
- func IsHttp1xx(httpCode int) bool
- func IsHttp2xx(httpCode int) bool
- func IsHttp3xx(httpCode int) bool
- func IsHttp4xx(httpCode int) bool
- func IsHttp5xx(httpCode int) bool
- func IsHttpError(httpCode int) bool
- type Header
- type RequestContext
Constants ¶
This section is empty.
Variables ¶
View Source
var ( HttpString = func(httpCode int) string { return fmt.Sprintf("%d: %s", httpCode, http.StatusText(httpCode)) } )
Functions ¶
func ClientIdEC ¶
func ClientIdEC(ec echo.Context) string
func GenerateUUIDV4 ¶
func GenerateUUIDV4() string
func IdECWithFlag ¶
func IdECWithFlagAndSuffix ¶
func IdWithFlagAndSuffix ¶
func IsHttpError ¶
Types ¶
type RequestContext ¶
type RequestContext string
const ( ContextClientId RequestContext = "client_id" ContextId RequestContext = "req_id" )
func (RequestContext) String ¶
func (t RequestContext) String() string
Click to show internal directories.
Click to hide internal directories.