golang-im聊天
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

message_proxy.go 369 B

2 년 전
123456789101112131415
  1. package proxy
  2. import (
  3. "context"
  4. "gim/pkg/pb"
  5. "google.golang.org/protobuf/proto"
  6. )
  7. var MessageProxy messageProxy
  8. type messageProxy interface {
  9. SendToUser(ctx context.Context, sender *pb.Sender, toUserId int64, req *pb.SendMessageReq) (int64, error)
  10. PushToUser(ctx context.Context, userId int64, code pb.PushCode, message proto.Message, isPersist bool) error
  11. }