package
0.0.0-20241011073606-0eec863b7131
Repository: https://github.com/advanced-go/stdlib.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
AddRequestId - add a request to an http.Request or an http.Header.
No description provided by the author
No description provided by the author
EnvStr - string representation for the environment.
ExchangeOverrideFromContext - return an exchange override.
HttpCode - conversion of a code to HTTP status code.
HttpStatus - string representation of status code.
IsDebugEnvironment - determine if debug environment.
IsProdEnvironment - determine if production environment.
IsStageEnvironment - determine if staging environment.
IsTestEnvironment - determine if test environment.
No description provided by the author
No description provided by the author
NewExchangeOverrideContext - creates a new Context with an exchange override.
No description provided by the author
NewExchangeProxy - create a new Exchange Proxy.
NewInvalidBodyTypeError - invalid type error.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RequestId - return a request id from any type and will create a new one if not found.
SetLogFunc - optional override of logging.
SetProdEnvironment - set production environment.
SetStageEnvironment - set staging environment.
SetTestEnvironment - set test environment.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Content encoding error.
Content encoding error.
codes.DeadlineExceeded // The deadline expired before the operation could complete.
Execution error, as in a database call.
Gzip decoding error.
Gzip encoding error.
Content is available.
codes.InvalidArgument // The client specified an invalid argument.
Content is not available, is nil, or is of the wrong type, usually found via unmarshalling.
I/O operation failed.
Json decoding failed.
Json encoding failed.
No description provided by the author
State has not changed.
No status is available.
Not started.
Rate limited.
Transaction processing begin error.
Transaction processing commit error.
Transaction processing rollback error.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
Bypass - bypass error handler.
No description provided by the author
ExchangeProxy - key value pairs of an authority -> HttpExchange.
Log - log error handler.
No description provided by the author
Origin - location.
Output - standard output error handler.
No description provided by the author
# Interfaces
No description provided by the author
ErrorHandler - error handler interface.
# Type aliases
No description provided by the author
No description provided by the author
LogFunc - log function.