Documentation ¶
Index ¶
- Variables
- func RegisterMsgPushServiceServer(s grpc.ServiceRegistrar, srv MsgPushServiceServer)
- type MsgPushServiceClient
- type MsgPushServiceServer
- type PushMsgReq
- func (*PushMsgReq) Descriptor() ([]byte, []int)deprecated
- func (x *PushMsgReq) GetMsgData() *chatpb.MsgData
- func (x *PushMsgReq) GetPushToUserID() []string
- func (*PushMsgReq) ProtoMessage()
- func (x *PushMsgReq) ProtoReflect() protoreflect.Message
- func (x *PushMsgReq) Reset()
- func (x *PushMsgReq) String() string
- type PushMsgResp
- type UnimplementedMsgPushServiceServer
- type UnsafeMsgPushServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_msgpush_proto protoreflect.FileDescriptor
var MsgPushService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pb.msgPushService", HandlerType: (*MsgPushServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "PushMsg", Handler: _MsgPushService_PushMsg_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "msgpush.proto", }
MsgPushService_ServiceDesc is the grpc.ServiceDesc for MsgPushService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMsgPushServiceServer ¶
func RegisterMsgPushServiceServer(s grpc.ServiceRegistrar, srv MsgPushServiceServer)
Types ¶
type MsgPushServiceClient ¶
type MsgPushServiceClient interface {
PushMsg(ctx context.Context, in *PushMsgReq, opts ...grpc.CallOption) (*PushMsgResp, error)
}
MsgPushServiceClient is the client API for MsgPushService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewMsgPushServiceClient ¶
func NewMsgPushServiceClient(cc grpc.ClientConnInterface) MsgPushServiceClient
type MsgPushServiceServer ¶
type MsgPushServiceServer interface { PushMsg(context.Context, *PushMsgReq) (*PushMsgResp, error) // contains filtered or unexported methods }
MsgPushServiceServer is the server API for MsgPushService service. All implementations must embed UnimplementedMsgPushServiceServer for forward compatibility
type PushMsgReq ¶
type PushMsgReq struct { MsgData *chatpb.MsgData `protobuf:"bytes,2,opt,name=msgData,proto3" json:"msgData,omitempty"` PushToUserID []string `protobuf:"bytes,3,rep,name=pushToUserID,proto3" json:"pushToUserID,omitempty"` // contains filtered or unexported fields }
func (*PushMsgReq) Descriptor
deprecated
func (*PushMsgReq) Descriptor() ([]byte, []int)
Deprecated: Use PushMsgReq.ProtoReflect.Descriptor instead.
func (*PushMsgReq) GetMsgData ¶
func (x *PushMsgReq) GetMsgData() *chatpb.MsgData
func (*PushMsgReq) GetPushToUserID ¶
func (x *PushMsgReq) GetPushToUserID() []string
func (*PushMsgReq) ProtoMessage ¶
func (*PushMsgReq) ProtoMessage()
func (*PushMsgReq) ProtoReflect ¶
func (x *PushMsgReq) ProtoReflect() protoreflect.Message
func (*PushMsgReq) Reset ¶
func (x *PushMsgReq) Reset()
func (*PushMsgReq) String ¶
func (x *PushMsgReq) String() string
type PushMsgResp ¶
type PushMsgResp struct { ResultCode int32 `protobuf:"varint,1,opt,name=ResultCode,proto3" json:"ResultCode,omitempty"` // contains filtered or unexported fields }
func (*PushMsgResp) Descriptor
deprecated
func (*PushMsgResp) Descriptor() ([]byte, []int)
Deprecated: Use PushMsgResp.ProtoReflect.Descriptor instead.
func (*PushMsgResp) GetResultCode ¶
func (x *PushMsgResp) GetResultCode() int32
func (*PushMsgResp) ProtoMessage ¶
func (*PushMsgResp) ProtoMessage()
func (*PushMsgResp) ProtoReflect ¶
func (x *PushMsgResp) ProtoReflect() protoreflect.Message
func (*PushMsgResp) Reset ¶
func (x *PushMsgResp) Reset()
func (*PushMsgResp) String ¶
func (x *PushMsgResp) String() string
type UnimplementedMsgPushServiceServer ¶
type UnimplementedMsgPushServiceServer struct { }
UnimplementedMsgPushServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedMsgPushServiceServer) PushMsg ¶
func (UnimplementedMsgPushServiceServer) PushMsg(context.Context, *PushMsgReq) (*PushMsgResp, error)
type UnsafeMsgPushServiceServer ¶
type UnsafeMsgPushServiceServer interface {
// contains filtered or unexported methods
}
UnsafeMsgPushServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MsgPushServiceServer will result in compilation errors.