controller

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

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 HTTPError

type HTTPError struct {
	Code int
	Err  error
}

func (*HTTPError) Error

func (e *HTTPError) Error() string

type HandlerFunc

type HandlerFunc func(ctx *gin.Context) (interface{}, error)

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)

type Response

type Response struct {
	Msg string `json:"msg"`
}

Jump to

Keyboard shortcuts

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