handler

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var H = hb{
	// contains filtered or unexported fields
}

Functions

func PushHandler

func PushHandler(w http.ResponseWriter, req *http.Request)

func PushMsg

func PushMsg(uid int, msg string) error

func ReportHandler

func ReportHandler(w http.ResponseWriter, r *http.Request)

Types

type ClientsReport

type ClientsReport struct {
	Uid    int    `json:"uid"`
	Status int    `json:"status"` //1心跳包,2其他
	Msg    string `json:"msg"`
}

客户端上报

type ServerReport

type ServerReport struct {
	Uid  int    `json:"uid"`
	Msg  string `json:"msg"`
	Sign string `json:"sign"`
}

服务端上报数据

Jump to

Keyboard shortcuts

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