Documentation ¶
Index ¶
Constants ¶
View Source
const ( // 200 ... 2xx Success = "success" // 400 BadRequest = "bad_request" WrongPassword = "wrong_password" // 401 UnAuthorized = "unauthorized" AccessTokenExpired = "access_token_expired" RefreshTokenExpired = "refresh_token_expired" HeaderRequired = "header_required" // this can be custom authorization headers like session, access key... // 403 PermissionDenied = "permission_denied" // 404 NotFound = "not_found" // 413 SizeExceeded = "size_exceeded" // 500 InternalServerError = "internal_server_error" )
Variables ¶
This section is empty.
Functions ¶
func StructToStruct ¶
Types ¶
type HandlerV1Config ¶
type HandlerV1Config struct { Logger *logger.Logger Cfg config.Config Postgres storage.StorageI JWTHandler t.JWTHandler Redis redisrepo.InMemoryStorageI }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.