controller

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2020 License: Apache-2.0 Imports: 4 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 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(tokens map[string]string) *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