handler

package
v0.0.0-...-e0474ae Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2019 License: MIT Imports: 25 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const Debug = true
View Source
const JOIN_ROOM_FAILED int = -1
View Source
const MAX_CONNECTION int = 100

Variables

This section is empty.

Functions

func AuthorizationHandler

func AuthorizationHandler(h echo.HandlerFunc) echo.HandlerFunc

func ChatHandler

func ChatHandler(c *echo.Group)

func ChatIndexPageHandler

func ChatIndexPageHandler(c *echo.Group)

func DomainHandler

func DomainHandler() gin.HandlerFunc

func GetRequestHeader

func GetRequestHeader(header http.Header, key string) string

func GetWXConfigHandler

func GetWXConfigHandler(g *gin.RouterGroup)

GetWXConfigHandler 根据url获取jssdk的配置

func TagDetailByIDsHandler

func TagDetailByIDsHandler(g *gin.RouterGroup)

TagDetailByIDsHandler 根据标签的id数组获取标签的详情列表信息

func TagListHandler

func TagListHandler(g *gin.RouterGroup)

TagListHandler 根据查询参数查询标签的分页数据

func UserDetailByIDsHandler

func UserDetailByIDsHandler(g *gin.RouterGroup)

UserDetailByIDsHandler 根据User的id数组获取User的详情列表信息

func UserListHandler

func UserListHandler(g *gin.RouterGroup)

UserListHandler 根据查询参数查询User的分页数据

func WXOauth2Handler

func WXOauth2Handler(g *gin.RouterGroup)

WXOauth2Handler The oauth2 of WeChat

func WrapChatRoutes

func WrapChatRoutes(c *echo.Group)

func WrapTagRoutes

func WrapTagRoutes(g *gin.RouterGroup)

func WrapUserRoutes

func WrapUserRoutes(g *gin.RouterGroup)

func WrapWXRoutes

func WrapWXRoutes(g *gin.RouterGroup)

Types

type ChatRoom

type ChatRoom struct {
	sync.Mutex
	// contains filtered or unexported fields
}

type ResponesData

type ResponesData struct {
	core.Error
	AccessToken string `json:"access_token"`
	OpenID      string `json:"openid"`
}

type UserRequestQueryParams

type UserRequestQueryParams struct {
	dm.RequestQueryParams
	Where *ml.User `json:"where"`
}

type WXConfig

type WXConfig struct {
	AppId     string `json:"appId"`
	Ticket    string `json:"ticket"`
	Timestamp string `json:"timestamp"`
	NonceStr  string `json:"nonceStr"`
	Signature string `json:"signature"`
}

Jump to

Keyboard shortcuts

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