server

package
v0.0.0-...-6f4ec31 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLatestMessage

func GetLatestMessage(addr string, r *model.HistoryRequest) []*model.HistoryMessage

func GetNewCount

func GetNewCount(addr string, sync_key *model.SyncHistory) (int64, error)

func Listen

func Listen(listen_addr string)

func ListenRPCClient

func ListenRPCClient(Rpc_listen string)

func SaveGroupMessage

func SaveGroupMessage(addr string, m *model.GroupMessage) (int64, error)

func SavePeerMessage

func SavePeerMessage(addr string, m *model.PeerMessage) (int64, error)

func Stack

func Stack(rw http.ResponseWriter, req *http.Request)

显示协程到os.stderr屏幕

func StartHttpServer

func StartHttpServer(addr string)

func Summary

func Summary(rw http.ResponseWriter, req *http.Request)

统计协程,请求数量,私聊和群聊数量

func SyncGroupMessage

func SyncGroupMessage(addr string, sync_key *model.SyncGroupHistory) *model.GroupHistoryMessage

func SyncMessage

func SyncMessage(addr string, sync_key *model.SyncHistory) *model.PeerHistoryMessage

func WriteHttpError

func WriteHttpError(status int, err string, w http.ResponseWriter)

func WriteHttpObj

func WriteHttpObj(data map[string]interface{}, w http.ResponseWriter)

Types

This section is empty.

Jump to

Keyboard shortcuts

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