app

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// center
	C_tabname_userinfo = "userinfo"
	C_tabname_group    = "group"
	// log
	C_tabname_log = "log"
)
View Source
const (
	C_max_gateid = 100000
)

Variables

View Source
var (
	DBIM *db.MyMongo
)
View Source
var NetMgr = &netmgr_t{
	connectq: tcp.NewConnectQ(),
}

Functions

func DatabaseOpen

func DatabaseOpen()

func GroupSet

func GroupSet(user_id string, cur interface{})

func UserGet

func UserGet(user_id string) *MPB.GS_UserInfo

Types

type Handlers

type Handlers struct{}

func (*Handlers) GetGroup

func (e *Handlers) GetGroup(ctx context.Context, in *MPB.Req_Group, out *MPB.Bytes) error

func (*Handlers) GetUserInfo

func (e *Handlers) GetUserInfo(ctx context.Context, in *MPB.Req_Users, out *MPB.Res_UserInfos) error

func (*Handlers) GroupAdd

func (e *Handlers) GroupAdd(ctx context.Context, in *MPB.Req_GroupAdd, out *MPB.Response) error

func (*Handlers) GroupChat

func (e *Handlers) GroupChat(ctx context.Context, in *MPB.Req_GroupChat, out *MPB.Response) error

func (*Handlers) GroupCreate

func (e *Handlers) GroupCreate(ctx context.Context, in *MPB.Bytes, out *MPB.Response) error

func (*Handlers) SetUserInfo

func (e *Handlers) SetUserInfo(ctx context.Context, in *MPB.Bytes, out *MPB.Response) error

Jump to

Keyboard shortcuts

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