im

package
v0.0.0-...-735ef63 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UserServiceName     = "v2/rpc/user"
	GetUserInfoByUserId = "UserInfo"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GetUserInfoReq

type GetUserInfoReq struct {
	Type    string
	GroupId int32
	UserId  int32
}

type GetUserInfoResp

type GetUserInfoResp map[string]UserInfo

type SvrRpc

type SvrRpc struct {
	example.JsonRpc
}

IM服务

func (SvrRpc) ModuleName

func (svr SvrRpc) ModuleName() string

type UserInfo

type UserInfo struct {
	Name   string
	Avatar string
}

type UserService

type UserService interface {
	GetUserInfo(ctx context.Context, req *GetUserInfoReq, resp *GetUserInfoResp) error
}

func NewUserService

func NewUserService() UserService

创建

Jump to

Keyboard shortcuts

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