package
0.0.0-20240926215053-69aed98de6b8
Repository: https://github.com/solher/toolbox.git
Documentation: pkg.go.dev

# Functions

NewDefaultGRPCClientConn is a simplae wrapper around a gRPC client connection.
NewDefaultGRPCServer returns a new default gRPC server.
NewJSON returns a new JSON instance.
NewXML returns a new XML instance.

# Variables

HTTPBodyDecoding indicates that the request body could not be decoded (bad syntax).
HTTPForbidden indicates that the user has a valid session but he is missing some permissions.
HTTPInternal indicates an unexpected internal error.
HTTPNotFound indicates that the requested resource was not found.
HTTPQueryParam indicates that an expected query parameter is missing.
HTTPUnauthorized indicates that the user does not have a valid associated session.
HTTPUnavailable indicates that the desired service is unavailable.
HTTPValidation indicates that some received parameters are invalid.

# Structs

DebugHTTPError defines a standard format for HTTP errors with additional debug info.
GRPCServer is a simplae wrapper around a gRPC server.
HTTPError defines a standard format for HTTP errors.
JSON returns a new JSON encoder that logs errors.
XML returns a new XML encoder that logs errors.