package
0.0.0-20241202184712-a3b39dcb9a80
Repository: https://github.com/advanced-go/common.git
Documentation: pkg.go.dev

# Functions

AddRequestId - add a request to an http.Request or an http.Header.
No description provided by the author
FmtRFC3339Millis - format time https://datatracker.ietf.org/doc/html/rfc3339.
HttpCode - conversion of a code to HTTP status code.
HttpStatus - string representation of status code.
JsonMarkup - markup a name/value pair.
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
ParseRFC3339Millis - parse a string into a time.Time, using the following string : 2023-04-14T14:14:45.522Z.
ParseTimestamp2 - parse a string into a time.Time, using the following string : 2023-04-14 14:14:45.522460.
RequestId - return a request id from any type and will create a new one if not found.
SetLogFunc - optional override of logging.
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
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
No description provided by the author
No description provided by the author

# Structs

Bypass - bypass error handler.
ExchangeProxy - key value pairs of a domain -> HttpExchange.
Log - log error handler.
Origin - location.
Output - standard output error handler.
No description provided by the author

# Interfaces

ErrorHandler - error handler interface.

# Type aliases

No description provided by the author
No description provided by the author
LogFunc - log function.