package
1.0.2
Repository: https://github.com/vuduongtp/go-core.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

New instantates new Echo server.
NewBinder initializes custom server binder.
NewErrorHandler returns the ErrorHandler instance.
NewHTTPError creates a new HTTPError instance.
NewHTTPGenericError creates a new HTTPError instance for generic error.
NewHTTPInternalError creates a new HTTPError instance for internal error.
NewHTTPValidationError creates a new HTTPError instance for validation error.
NewValidator creates new custom validator.
Start starts echo server.

# Constants

GenericErrorType type of common errors.
InternalErrorType type of common errors.
ValidationErrorType type of common errors.

# Variables

DefaultConfig for the API server.

# Structs

Config represents server specific config.
CustomBinder struct.
CustomValidator holds custom validator.
ErrorHandler represents the custom http error handler.
ErrorResponse represents the error response.
HTTPError represents an error that occurred while handling a request.