handler

package
v0.0.0-...-8e06e88 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestJwt

func TestJwt(c *gin.Context)

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func (Handler) WebLogin

func (h Handler) WebLogin(c *gin.Context)

func (*Handler) WebRegister

func (h *Handler) WebRegister(c *gin.Context)

func (*Handler) WxLogin

func (h *Handler) WxLogin(id string) (request.WxUser, error)

func (*Handler) WxRegister

func (h *Handler) WxRegister(c *gin.Context)

type IHandler

type IHandler interface {
	WxLogin(id string) (request.WxUser, error)
	WxRegister(c *gin.Context)
	WebRegister(c *gin.Context)
	WebLogin(c *gin.Context)
}

func NewHandler

func NewHandler() (IHandler, error)

func NewHandlerWithParams

func NewHandlerWithParams() (IHandler, error)

Jump to

Keyboard shortcuts

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