Documentation ¶
Index ¶
- func BadRequest(c *fiber.Ctx, e error) error
- func CheckRecaptcha(secret, response string) error
- func Conflict(c *fiber.Ctx, e error, message string) error
- func CreateCertificate(v *models.Trademark) (*gofpdf.Fpdf, error)
- func FetchDataFromApi(keyword string) (map[string]interface{}, error)
- func GenerateNewAccessToken(atm *JWTAccess) (string, error)
- func GenerateNewAuthToken(par *models.JwtAuthModel) (*models.JwtTokenDetails, error)
- func GenerateNewRefreshToken(rtm *JWTRefresh) (string, error)
- func GenerateRegistrationNumber() string
- func InternalServerError(c *fiber.Ctx, e error) error
- func NewValidator() *validator.Validate
- func NotFound(c *fiber.Ctx, e error) error
- func PrivateKey() string
- func StartServer(a *fiber.App)
- func StartServerWithGracefulShutdown(a *fiber.App)
- func TokenValid(c *fiber.Ctx) error
- func TrademarkSimilarity(name string) (bool, error)
- func Unauthorized(c *fiber.Ctx) error
- func UploadFiletoS3(user string, file *multipart.FileHeader) (bool, string, error)
- func UploadFiletoS3PDF(user string, file *gofpdf.Fpdf, v *models.Trademark) (bool, string, error)
- func ValidatorError(err error) map[string]string
- type JWTAccess
- type JWTRefresh
- type SiteVerifyRequest
- type SiteVerifyResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BadRequest ¶
func CheckRecaptcha ¶
func FetchDataFromApi ¶
func GenerateNewAccessToken ¶
func GenerateNewAuthToken ¶
func GenerateNewAuthToken(par *models.JwtAuthModel) (*models.JwtTokenDetails, error)
func GenerateNewRefreshToken ¶
func GenerateNewRefreshToken(rtm *JWTRefresh) (string, error)
func GenerateRegistrationNumber ¶
func GenerateRegistrationNumber() string
func InternalServerError ¶
func NewValidator ¶
func NewValidator() *validator.Validate
func PrivateKey ¶
func PrivateKey() string
func StartServerWithGracefulShutdown ¶
func StartServerWithGracefulShutdown(a *fiber.App)
StartServerWithGracefulShutdown function for starting server with a graceful shutdown.
func TokenValid ¶
func TokenValid(c *fiber.Ctx) error
func TrademarkSimilarity ¶
func Unauthorized ¶
func Unauthorized(c *fiber.Ctx) error
func UploadFiletoS3 ¶
func UploadFiletoS3PDF ¶
func ValidatorError ¶
Types ¶
type JWTAccess ¶
type JWTAccess struct { AccessUuid uuid.UUID `json:"accessUuid"` User uuid.UUID `json:"userId"` Role int16 `json:"role"` jwt.StandardClaims }
func ExtractTokenMetadata ¶
type JWTRefresh ¶
type JWTRefresh struct { RefreshUuid uuid.UUID `json:"refreshUuid"` User uuid.UUID `json:"userId"` FirstName string `json:"firstName"` LastName string `json:"lastName"` Email string `json:"email"` Role int16 `json:"role"` jwt.StandardClaims }
func ExtractRefreshToken ¶
func ExtractRefreshToken(t string) (*JWTRefresh, error)
func ExtractRefreshTokenMetadata ¶
func ExtractRefreshTokenMetadata(c *fiber.Ctx) (*JWTRefresh, error)
type SiteVerifyRequest ¶
type SiteVerifyRequest struct {
RecaptchaResponse string `json:"g-recaptcha-response"`
}
Click to show internal directories.
Click to hide internal directories.