grpcclient

package
v2.0.8 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package grpcclient grpc 客户端

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUserList

func GetUserList(server *models.Server, appID uint32) (userIDs []string, err error)

GetUserList 获取用户列表 link::https://github.com/grpc/grpc-go/blob/master/examples/helloworld/greeter_client/main.go

func SendMsg

func SendMsg(server *models.Server, seq string, appID uint32, userID string, cmd string, msgType string,
	message string) (sendMsgID string, err error)

SendMsg 发送消息 link::https://github.com/grpc/grpc-go/blob/master/examples/helloworld/greeter_client/main.go

func SendMsgAll

func SendMsgAll(server *models.Server, seq string, appID uint32, userID string, cmd string,
	message string) (sendMsgID string, err error)

SendMsgAll 给全体用户发送消息 link::https://github.com/grpc/grpc-go/blob/master/examples/helloworld/greeter_client/main.go

Types

This section is empty.

Jump to

Keyboard shortcuts

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