Documentation
¶
Index ¶
- Variables
- func CanExecute() gin.HandlerFunc
- func CanRead() gin.HandlerFunc
- func CanWrite() gin.HandlerFunc
- func CheckGroup() gin.HandlerFunc
- func CheckRole() gin.HandlerFunc
- func CheckRolesExist() gin.HandlerFunc
- func DeleteCommand(c *gin.Context)
- func GetDb() *sql.DB
- func GetJwtSecret() []byte
- func InitServer() *gin.Engine
- func IsAdmin() gin.HandlerFunc
- func KillCommand(c *gin.Context)
- func NewCommand(c *gin.Context)
- func RunCommand(c *gin.Context)
- func RunServer(portString string, router *gin.Engine)
- func SetDb(sqlDb *sql.DB)
- func SetJwtSecret(secret []byte)
- func SetLogger(log *zap.Logger)
- func Signin(c *gin.Context)
- func Signout(c *gin.Context)
- func Signup(c *gin.Context)
- func VerifyToken() gin.HandlerFunc
- type AdminCheck
- type AuthCheck
- type CommandVerification
- type ConciergeTokenClaims
- type DeleteCommandBody
- type GroupCheck
- type NewCommandBody
- type RoleCheck
- type RolesCheck
- type SigninBody
- type SigninRes
- type SignupBody
- type UserCheck
Constants ¶
This section is empty.
Variables ¶
View Source
var Logger *zap.Logger
Functions ¶
func CanExecute ¶
func CanExecute() gin.HandlerFunc
func CanRead ¶
func CanRead() gin.HandlerFunc
func CanWrite ¶
func CanWrite() gin.HandlerFunc
func CheckGroup ¶
func CheckGroup() gin.HandlerFunc
func CheckRole ¶
func CheckRole() gin.HandlerFunc
func CheckRolesExist ¶
func CheckRolesExist() gin.HandlerFunc
func DeleteCommand ¶
func GetJwtSecret ¶
func GetJwtSecret() []byte
func InitServer ¶
func IsAdmin ¶
func IsAdmin() gin.HandlerFunc
func KillCommand ¶
func NewCommand ¶
func RunCommand ¶
func SetJwtSecret ¶
func SetJwtSecret(secret []byte)
func VerifyToken ¶
func VerifyToken() gin.HandlerFunc
Types ¶
type AdminCheck ¶
type CommandVerification ¶
type ConciergeTokenClaims ¶
type ConciergeTokenClaims struct { User string `json:"user"` jwt.StandardClaims }
type DeleteCommandBody ¶
type DeleteCommandBody struct {
CommandName string `json:commandname`
}
type GroupCheck ¶
type NewCommandBody ¶
type RolesCheck ¶
type RolesCheck struct {
Roles []string `json:roles`
}
type SigninBody ¶
type SignupBody ¶
Click to show internal directories.
Click to hide internal directories.