Documentation ¶
Index ¶
- Constants
- Variables
- func DatabaseOpen()
- func GroupSet(user_id string, cur interface{})
- func UserGet(user_id string) *MPB.GS_UserInfo
- type Handlers
- func (e *Handlers) GetGroup(ctx context.Context, in *MPB.Req_Group, out *MPB.Bytes) error
- func (e *Handlers) GetUserInfo(ctx context.Context, in *MPB.Req_Users, out *MPB.Res_UserInfos) error
- func (e *Handlers) GroupAdd(ctx context.Context, in *MPB.Req_GroupAdd, out *MPB.Response) error
- func (e *Handlers) GroupChat(ctx context.Context, in *MPB.Req_GroupChat, out *MPB.Response) error
- func (e *Handlers) GroupCreate(ctx context.Context, in *MPB.Bytes, out *MPB.Response) error
- func (e *Handlers) SetUserInfo(ctx context.Context, in *MPB.Bytes, out *MPB.Response) error
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(), }
View Source
var Sonyflake *sonyflake.Sonyflake
Functions ¶
func DatabaseOpen ¶
func DatabaseOpen()
Types ¶
Click to show internal directories.
Click to hide internal directories.