pb

package
v1.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

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

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.

Jump to

Keyboard shortcuts

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