Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeGinHandlerFunc ¶
func MakeGinHandlerFunc(handler HandlerFunc) gin.HandlerFunc
Types ¶
type CustomClaims ¶
type CustomClaims struct {
Sub string `json:"sub"`
Ports []string `json:"ports"`
jwt.RegisteredClaims
}
type HandlerFunc ¶
type OpController ¶
type OpController struct {
// contains filtered or unexported fields
}
func NewOpController ¶
func NewOpController(s []byte) *OpController
func (*OpController) HandleLogin ¶
func (c *OpController) HandleLogin(ctx *gin.Context) (interface{}, error)
func (*OpController) Register ¶
func (c *OpController) Register(engine *gin.Engine)
Click to show internal directories.
Click to hide internal directories.