auth

package
v0.0.0-...-32dec47 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyRoutes

func ApplyRoutes(r *gin.RouterGroup)

ApplyRoutes applies router to gin Router

func Init

func Init()

Types

type AuthenticatePayload

type AuthenticatePayload struct {
	Status  int64  `json:"status"`
	Success bool   `json:"success"`
	Message string `json:"message"`
	Token   string `json:"token"`
}

func ErrAuthenticate

func ErrAuthenticate(errvalue string) AuthenticatePayload

type AuthenticateReq

type AuthenticateReq struct {
	Type string `json:"type" binding:"required"`
}

type GenericAuthHeaders

type GenericAuthHeaders struct {
	Authorization string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL