Documentation ¶
Index ¶
- Variables
- func CustomJsonErrorHandler(err error, c echo.Context)
- func Debug(x interface{}) string
- func DecodeStringMap(raw []byte) (map[string]any, error)
- func Fatal(errs ...error)
- func JSON(c echo.Context, x any, errs ...error) error
- func Json(x interface{}) ([]byte, error)
- func NewEcho(zLog zerolog.Logger) (*echo.Echo, *echotozero.Logger)
- func NewGlobalZero(jsonFormat bool, verbosity int) (zerolog.Logger, string)
- func Reject(c echo.Context, err error) error
- type DbConnectSettings
- type ErrorReturn
- type MAP
Constants ¶
This section is empty.
Variables ¶
View Source
var BG = context.Background()
Functions ¶
func CustomJsonErrorHandler ¶
func CustomJsonErrorHandler(err error, c echo.Context)
Fires when error is not explictly handled by Reject Send generic message instead of non-client-facing message
func DecodeStringMap ¶
JSON map convenience func
func Fatal ¶
func Fatal(errs ...error)
Hard-exits with a log statement on error. Only for cases like CLI startup and scripting
func NewEcho ¶
func NewEcho(zLog zerolog.Logger) (*echo.Echo, *echotozero.Logger)
NewEcho configures a new API server with message logging but no middleware
func NewGlobalZero ¶
NewGlobalZero configures an instanced and global logger Returns logger and logging level string.
When not in JSON mode, fields named "ex" will be pretty-printed.
Types ¶
type DbConnectSettings ¶
Represents the portions of a SQL connect string
func (*DbConnectSettings) String ¶
func (c *DbConnectSettings) String() string
Formats settings into a database/sql connection string
type ErrorReturn ¶
Consistent error return for all failures
Click to show internal directories.
Click to hide internal directories.