package
0.0.0-20240812070439-a461e044ad03
Repository: https://github.com/improwised/golang-api.git
Documentation: pkg.go.dev
# Functions
CheckPasswordHash to match password.
JSONError is a generic error output writer JSONError can used for 5xx status code response.
JSONFail is a generic fail output writer JSONFail can used for 4xx status code response.
JSONSuccess is a generic success output writer.
PasswordHash to encrypt password with salt.
No description provided by the author
No description provided by the author
# Constants
No description provided by the author
# Structs
swagger:parameters RequestAuthnUser.
swagger:parameters RequestCreateUser.
swagger:parameters RequestGetUser.
Unexpected error occurred swagger:response GenericResError.
Fail due to user invalid input swagger:response GenericResFailBadRequest.
Server understand request but refuse to authorize it swagger:response GenericResFailConflict.
Fail due to resource not exists swagger:response GenericResFailNotFound.
Fail due to server understand request but unable to process swagger:response GenericResFailUnprocessableEntity.
Fail due to user invalid input swagger:response ResForbiddenRequest.
Response is okay swagger:response GenericResOk.
swagger:response ResponseAuthnUser.
swagger:response ResponseCreateUser.
swagger:response ResponseGetUser.