Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterPushMsgServiceServer(s grpc.ServiceRegistrar, srv PushMsgServiceServer)
- type DelUserPushTokenReq
- func (x *DelUserPushTokenReq) Check() error
- func (*DelUserPushTokenReq) Descriptor() ([]byte, []int)deprecated
- func (x *DelUserPushTokenReq) GetPlatformID() int32
- func (x *DelUserPushTokenReq) GetUserID() string
- func (*DelUserPushTokenReq) ProtoMessage()
- func (x *DelUserPushTokenReq) ProtoReflect() protoreflect.Message
- func (x *DelUserPushTokenReq) Reset()
- func (x *DelUserPushTokenReq) String() string
- type DelUserPushTokenResp
- type PushMsgReq
- func (x *PushMsgReq) Check() error
- func (*PushMsgReq) Descriptor() ([]byte, []int)deprecated
- func (x *PushMsgReq) GetConversationID() string
- func (x *PushMsgReq) GetMsgData() *sdkws.MsgData
- func (*PushMsgReq) ProtoMessage()
- func (x *PushMsgReq) ProtoReflect() protoreflect.Message
- func (x *PushMsgReq) Reset()
- func (x *PushMsgReq) String() string
- type PushMsgResp
- type PushMsgServiceClient
- type PushMsgServiceServer
- type UnimplementedPushMsgServiceServer
- type UnsafePushMsgServiceServer
Constants ¶
const ( PushMsgService_PushMsg_FullMethodName = "/openim.push.PushMsgService/PushMsg" PushMsgService_DelUserPushToken_FullMethodName = "/openim.push.PushMsgService/DelUserPushToken" )
Variables ¶
var File_push_push_proto protoreflect.FileDescriptor
var PushMsgService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "openim.push.PushMsgService", HandlerType: (*PushMsgServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "PushMsg", Handler: _PushMsgService_PushMsg_Handler, }, { MethodName: "DelUserPushToken", Handler: _PushMsgService_DelUserPushToken_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "push/push.proto", }
PushMsgService_ServiceDesc is the grpc.ServiceDesc for PushMsgService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterPushMsgServiceServer ¶
func RegisterPushMsgServiceServer(s grpc.ServiceRegistrar, srv PushMsgServiceServer)
Types ¶
type DelUserPushTokenReq ¶
type DelUserPushTokenReq struct { UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID"` PlatformID int32 `protobuf:"varint,2,opt,name=platformID,proto3" json:"platformID"` // contains filtered or unexported fields }
func (*DelUserPushTokenReq) Check ¶
func (x *DelUserPushTokenReq) Check() error
func (*DelUserPushTokenReq) Descriptor
deprecated
func (*DelUserPushTokenReq) Descriptor() ([]byte, []int)
Deprecated: Use DelUserPushTokenReq.ProtoReflect.Descriptor instead.
func (*DelUserPushTokenReq) GetPlatformID ¶
func (x *DelUserPushTokenReq) GetPlatformID() int32
func (*DelUserPushTokenReq) GetUserID ¶
func (x *DelUserPushTokenReq) GetUserID() string
func (*DelUserPushTokenReq) ProtoMessage ¶
func (*DelUserPushTokenReq) ProtoMessage()
func (*DelUserPushTokenReq) ProtoReflect ¶
func (x *DelUserPushTokenReq) ProtoReflect() protoreflect.Message
func (*DelUserPushTokenReq) Reset ¶
func (x *DelUserPushTokenReq) Reset()
func (*DelUserPushTokenReq) String ¶
func (x *DelUserPushTokenReq) String() string
type DelUserPushTokenResp ¶
type DelUserPushTokenResp struct {
// contains filtered or unexported fields
}
func (*DelUserPushTokenResp) Descriptor
deprecated
func (*DelUserPushTokenResp) Descriptor() ([]byte, []int)
Deprecated: Use DelUserPushTokenResp.ProtoReflect.Descriptor instead.
func (*DelUserPushTokenResp) ProtoMessage ¶
func (*DelUserPushTokenResp) ProtoMessage()
func (*DelUserPushTokenResp) ProtoReflect ¶
func (x *DelUserPushTokenResp) ProtoReflect() protoreflect.Message
func (*DelUserPushTokenResp) Reset ¶
func (x *DelUserPushTokenResp) Reset()
func (*DelUserPushTokenResp) String ¶
func (x *DelUserPushTokenResp) String() string
type PushMsgReq ¶
type PushMsgReq struct { MsgData *sdkws.MsgData `protobuf:"bytes,1,opt,name=msgData,proto3" json:"msgData"` ConversationID string `protobuf:"bytes,2,opt,name=conversationID,proto3" json:"conversationID"` // contains filtered or unexported fields }
func (*PushMsgReq) Check ¶
func (x *PushMsgReq) Check() error
func (*PushMsgReq) Descriptor
deprecated
func (*PushMsgReq) Descriptor() ([]byte, []int)
Deprecated: Use PushMsgReq.ProtoReflect.Descriptor instead.
func (*PushMsgReq) GetConversationID ¶
func (x *PushMsgReq) GetConversationID() string
func (*PushMsgReq) GetMsgData ¶
func (x *PushMsgReq) GetMsgData() *sdkws.MsgData
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 {
// contains filtered or unexported fields
}
func (*PushMsgResp) Descriptor
deprecated
func (*PushMsgResp) Descriptor() ([]byte, []int)
Deprecated: Use PushMsgResp.ProtoReflect.Descriptor instead.
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 PushMsgServiceClient ¶
type PushMsgServiceClient interface { PushMsg(ctx context.Context, in *PushMsgReq, opts ...grpc.CallOption) (*PushMsgResp, error) DelUserPushToken(ctx context.Context, in *DelUserPushTokenReq, opts ...grpc.CallOption) (*DelUserPushTokenResp, error) }
PushMsgServiceClient is the client API for PushMsgService 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 NewPushMsgServiceClient ¶
func NewPushMsgServiceClient(cc grpc.ClientConnInterface) PushMsgServiceClient
type PushMsgServiceServer ¶
type PushMsgServiceServer interface { PushMsg(context.Context, *PushMsgReq) (*PushMsgResp, error) DelUserPushToken(context.Context, *DelUserPushTokenReq) (*DelUserPushTokenResp, error) }
PushMsgServiceServer is the server API for PushMsgService service. All implementations should embed UnimplementedPushMsgServiceServer for forward compatibility.
type UnimplementedPushMsgServiceServer ¶
type UnimplementedPushMsgServiceServer struct{}
UnimplementedPushMsgServiceServer should be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedPushMsgServiceServer) DelUserPushToken ¶
func (UnimplementedPushMsgServiceServer) DelUserPushToken(context.Context, *DelUserPushTokenReq) (*DelUserPushTokenResp, error)
func (UnimplementedPushMsgServiceServer) PushMsg ¶
func (UnimplementedPushMsgServiceServer) PushMsg(context.Context, *PushMsgReq) (*PushMsgResp, error)
type UnsafePushMsgServiceServer ¶
type UnsafePushMsgServiceServer interface {
// contains filtered or unexported methods
}
UnsafePushMsgServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PushMsgServiceServer will result in compilation errors.