Versions in this module Expand all Collapse all v1 v1.0.5 Oct 19, 2022 Changes in this version + 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 struct + Auth AuthConfig + DB DBConfig + Port string + ServiceName string + var Config *AppConfig + func New() *AppConfig + type AuthConfig struct + Issuer string + JWTSecret string + Kid string + PrivateKeyPath string + PublicKeyPath string + type DBConfig struct + AuthType string + Password string + URI string + Username string + type JWTBuilder struct + Expiry int64 + IssuedAt int64 + Issuer string + Secret []byte + Subject string + func (jt JWTBuilder) CreateJWT() (*string, error) + type JWTHeader struct + Alg string + Kid string + Typ string + type RestResponse struct + Context *fiber.Ctx + HTTPStatus int + Payload interface{} + Status string + func (rr RestResponse) SendResponse() error + type UserSubContextKey string + var UserSubKey UserSubContextKey = "user_id"