package
Version:
v0.0.0-...-3bf3187
Opens a new window with list of versions in this module.
Published: Jan 21, 2024
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
var (
BadRequest string = "BAD_REQUEST"
NotFound string = "NOT_FOUND"
NotRequiredField string = "NOT_REQUIRED_FIELD"
BadQueryParams string = "BAD_QUERY_PARAMS"
RequestTimeOut string = "REQUEST_TIMEOUT"
InternalServer string = "INTERNAL_SERVER_ERROR"
)
func GetIPAddress(c echo.Context) string
Get user ip address
func GetRequestID(c echo.Context) string
Get request id from echo context
type ErrorMessage struct {
Message string `json:"message"`
StatusCode int `json:"status_code"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.