golang-im聊天
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

16 line
369 B

  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. }