Documentation ¶
Index ¶
- func AuthVerify(app *fiber.App)
- func CreateRestHook(app *fiber.App)
- func DefaultErrorResponse(ctx *fiber.Ctx, err error) error
- func GetSubFromToken(tokenString string) (string, error)
- func Load(fileName string)
- func LoadEnv()
- type AppConfig
- type AuthConfig
- type DBConfig
- type JWTBuilder
- type JWTHeader
- type RestResponse
- type UserSubContextKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthVerify ¶
func AuthVerify(app *fiber.App)
func CreateRestHook ¶
func CreateRestHook(app *fiber.App)
func DefaultErrorResponse ¶
func GetSubFromToken ¶
Types ¶
type AppConfig ¶
type AppConfig struct { Port string ServiceName string DB DBConfig Auth AuthConfig }
var Config *AppConfig
type AuthConfig ¶
type JWTBuilder ¶
func (JWTBuilder) CreateJWT ¶
func (jt JWTBuilder) CreateJWT() (*string, error)
type RestResponse ¶
func (RestResponse) SendResponse ¶
func (rr RestResponse) SendResponse() error
Click to show internal directories.
Click to hide internal directories.