push

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PushMsgService_PushMsg_FullMethodName          = "/openim.push.PushMsgService/PushMsg"
	PushMsgService_DelUserPushToken_FullMethodName = "/openim.push.PushMsgService/DelUserPushToken"
)

Variables

View Source
var File_push_push_proto protoreflect.FileDescriptor
View Source
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.

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) PushMsg

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.

Jump to

Keyboard shortcuts

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