Documentation ¶
Index ¶
- Variables
- func RegisterMsgcallbackServiceServer(s grpc.ServiceRegistrar, srv MsgcallbackServiceServer)
- type ActionCode
- type CallbackCommand
- func (CallbackCommand) Descriptor() protoreflect.EnumDescriptor
- func (x CallbackCommand) Enum() *CallbackCommand
- func (CallbackCommand) EnumDescriptor() ([]byte, []int)deprecated
- func (x CallbackCommand) Number() protoreflect.EnumNumber
- func (x CallbackCommand) String() string
- func (CallbackCommand) Type() protoreflect.EnumType
- type CallbackSendGroupMsgReq
- func (*CallbackSendGroupMsgReq) Descriptor() ([]byte, []int)deprecated
- func (x *CallbackSendGroupMsgReq) GetCommonCallbackReq() *CommonCallbackReq
- func (x *CallbackSendGroupMsgReq) GetGroupID() string
- func (*CallbackSendGroupMsgReq) ProtoMessage()
- func (x *CallbackSendGroupMsgReq) ProtoReflect() protoreflect.Message
- func (x *CallbackSendGroupMsgReq) Reset()
- func (x *CallbackSendGroupMsgReq) String() string
- type CallbackSendSingleMsgReq
- func (*CallbackSendSingleMsgReq) Descriptor() ([]byte, []int)deprecated
- func (x *CallbackSendSingleMsgReq) GetCommonCallbackReq() *CommonCallbackReq
- func (x *CallbackSendSingleMsgReq) GetRecvID() string
- func (*CallbackSendSingleMsgReq) ProtoMessage()
- func (x *CallbackSendSingleMsgReq) ProtoReflect() protoreflect.Message
- func (x *CallbackSendSingleMsgReq) Reset()
- func (x *CallbackSendSingleMsgReq) String() string
- type CommonCallbackReq
- func (*CommonCallbackReq) Descriptor() ([]byte, []int)deprecated
- func (x *CommonCallbackReq) GetCallbackCommand() CallbackCommand
- func (x *CommonCallbackReq) GetClientMsgID() string
- func (x *CommonCallbackReq) GetContent() []byte
- func (x *CommonCallbackReq) GetContentType() int32
- func (x *CommonCallbackReq) GetConversationType() int32
- func (x *CommonCallbackReq) GetCreateTime() int64
- func (x *CommonCallbackReq) GetSendID() string
- func (x *CommonCallbackReq) GetServerMsgID() string
- func (*CommonCallbackReq) ProtoMessage()
- func (x *CommonCallbackReq) ProtoReflect() protoreflect.Message
- func (x *CommonCallbackReq) Reset()
- func (x *CommonCallbackReq) String() string
- type CommonCallbackResp
- func (*CommonCallbackResp) Descriptor() ([]byte, []int)deprecated
- func (x *CommonCallbackResp) GetActionCode() ActionCode
- func (x *CommonCallbackResp) GetErrCode() ErrCode
- func (x *CommonCallbackResp) GetErrMsg() string
- func (*CommonCallbackResp) ProtoMessage()
- func (x *CommonCallbackResp) ProtoReflect() protoreflect.Message
- func (x *CommonCallbackResp) Reset()
- func (x *CommonCallbackResp) String() string
- type ErrCode
- type MsgcallbackServiceClient
- type MsgcallbackServiceServer
- type UnimplementedMsgcallbackServiceServer
- func (UnimplementedMsgcallbackServiceServer) CallbackAfterSendGroupMsg(context.Context, *CallbackSendGroupMsgReq) (*CommonCallbackResp, error)
- func (UnimplementedMsgcallbackServiceServer) CallbackAfterSendSingleMsg(context.Context, *CallbackSendSingleMsgReq) (*CommonCallbackResp, error)
- func (UnimplementedMsgcallbackServiceServer) CallbackBeforeSendGroupMsg(context.Context, *CallbackSendGroupMsgReq) (*CommonCallbackResp, error)
- func (UnimplementedMsgcallbackServiceServer) CallbackBeforeSendSingleMsg(context.Context, *CallbackSendSingleMsgReq) (*CommonCallbackResp, error)
- type UnsafeMsgcallbackServiceServer
Constants ¶
This section is empty.
Variables ¶
var ( CallbackCommand_name = map[int32]string{ 0: "None", 1: "BeforeSendSingleMsg", 2: "AfterSendSingleMsg", 3: "BeforeSendGroupMsg", 4: "AfterSendGroupMsg", } CallbackCommand_value = map[string]int32{ "None": 0, "BeforeSendSingleMsg": 1, "AfterSendSingleMsg": 2, "BeforeSendGroupMsg": 3, "AfterSendGroupMsg": 4, } )
Enum value maps for CallbackCommand.
var ( ActionCode_name = map[int32]string{ 0: "Forbidden", } ActionCode_value = map[string]int32{ "Forbidden": 0, } )
Enum value maps for ActionCode.
var ( ErrCode_name = map[int32]string{ 0: "HandleSuccess", 1: "HandleFailed", } ErrCode_value = map[string]int32{ "HandleSuccess": 0, "HandleFailed": 1, } )
Enum value maps for ErrCode.
var File_msgcallback_proto protoreflect.FileDescriptor
var MsgcallbackService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pb.msgcallbackService", HandlerType: (*MsgcallbackServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CallbackBeforeSendGroupMsg", Handler: _MsgcallbackService_CallbackBeforeSendGroupMsg_Handler, }, { MethodName: "CallbackAfterSendGroupMsg", Handler: _MsgcallbackService_CallbackAfterSendGroupMsg_Handler, }, { MethodName: "CallbackBeforeSendSingleMsg", Handler: _MsgcallbackService_CallbackBeforeSendSingleMsg_Handler, }, { MethodName: "CallbackAfterSendSingleMsg", Handler: _MsgcallbackService_CallbackAfterSendSingleMsg_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "msgcallback.proto", }
MsgcallbackService_ServiceDesc is the grpc.ServiceDesc for MsgcallbackService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMsgcallbackServiceServer ¶
func RegisterMsgcallbackServiceServer(s grpc.ServiceRegistrar, srv MsgcallbackServiceServer)
Types ¶
type ActionCode ¶
type ActionCode int32
const (
ActionCode_Forbidden ActionCode = 0
)
func (ActionCode) Descriptor ¶
func (ActionCode) Descriptor() protoreflect.EnumDescriptor
func (ActionCode) Enum ¶
func (x ActionCode) Enum() *ActionCode
func (ActionCode) EnumDescriptor
deprecated
func (ActionCode) EnumDescriptor() ([]byte, []int)
Deprecated: Use ActionCode.Descriptor instead.
func (ActionCode) Number ¶
func (x ActionCode) Number() protoreflect.EnumNumber
func (ActionCode) String ¶
func (x ActionCode) String() string
func (ActionCode) Type ¶
func (ActionCode) Type() protoreflect.EnumType
type CallbackCommand ¶
type CallbackCommand int32
const ( CallbackCommand_None CallbackCommand = 0 CallbackCommand_BeforeSendSingleMsg CallbackCommand = 1 CallbackCommand_AfterSendSingleMsg CallbackCommand = 2 CallbackCommand_BeforeSendGroupMsg CallbackCommand = 3 CallbackCommand_AfterSendGroupMsg CallbackCommand = 4 )
func (CallbackCommand) Descriptor ¶
func (CallbackCommand) Descriptor() protoreflect.EnumDescriptor
func (CallbackCommand) Enum ¶
func (x CallbackCommand) Enum() *CallbackCommand
func (CallbackCommand) EnumDescriptor
deprecated
func (CallbackCommand) EnumDescriptor() ([]byte, []int)
Deprecated: Use CallbackCommand.Descriptor instead.
func (CallbackCommand) Number ¶
func (x CallbackCommand) Number() protoreflect.EnumNumber
func (CallbackCommand) String ¶
func (x CallbackCommand) String() string
func (CallbackCommand) Type ¶
func (CallbackCommand) Type() protoreflect.EnumType
type CallbackSendGroupMsgReq ¶
type CallbackSendGroupMsgReq struct { CommonCallbackReq *CommonCallbackReq `protobuf:"bytes,1,opt,name=CommonCallbackReq,proto3" json:"CommonCallbackReq,omitempty"` GroupID string `protobuf:"bytes,2,opt,name=GroupID,proto3" json:"GroupID,omitempty"` // contains filtered or unexported fields }
func (*CallbackSendGroupMsgReq) Descriptor
deprecated
func (*CallbackSendGroupMsgReq) Descriptor() ([]byte, []int)
Deprecated: Use CallbackSendGroupMsgReq.ProtoReflect.Descriptor instead.
func (*CallbackSendGroupMsgReq) GetCommonCallbackReq ¶
func (x *CallbackSendGroupMsgReq) GetCommonCallbackReq() *CommonCallbackReq
func (*CallbackSendGroupMsgReq) GetGroupID ¶
func (x *CallbackSendGroupMsgReq) GetGroupID() string
func (*CallbackSendGroupMsgReq) ProtoMessage ¶
func (*CallbackSendGroupMsgReq) ProtoMessage()
func (*CallbackSendGroupMsgReq) ProtoReflect ¶
func (x *CallbackSendGroupMsgReq) ProtoReflect() protoreflect.Message
func (*CallbackSendGroupMsgReq) Reset ¶
func (x *CallbackSendGroupMsgReq) Reset()
func (*CallbackSendGroupMsgReq) String ¶
func (x *CallbackSendGroupMsgReq) String() string
type CallbackSendSingleMsgReq ¶
type CallbackSendSingleMsgReq struct { CommonCallbackReq *CommonCallbackReq `protobuf:"bytes,1,opt,name=CommonCallbackReq,proto3" json:"CommonCallbackReq,omitempty"` RecvID string `protobuf:"bytes,2,opt,name=RecvID,proto3" json:"RecvID,omitempty"` // contains filtered or unexported fields }
func (*CallbackSendSingleMsgReq) Descriptor
deprecated
func (*CallbackSendSingleMsgReq) Descriptor() ([]byte, []int)
Deprecated: Use CallbackSendSingleMsgReq.ProtoReflect.Descriptor instead.
func (*CallbackSendSingleMsgReq) GetCommonCallbackReq ¶
func (x *CallbackSendSingleMsgReq) GetCommonCallbackReq() *CommonCallbackReq
func (*CallbackSendSingleMsgReq) GetRecvID ¶
func (x *CallbackSendSingleMsgReq) GetRecvID() string
func (*CallbackSendSingleMsgReq) ProtoMessage ¶
func (*CallbackSendSingleMsgReq) ProtoMessage()
func (*CallbackSendSingleMsgReq) ProtoReflect ¶
func (x *CallbackSendSingleMsgReq) ProtoReflect() protoreflect.Message
func (*CallbackSendSingleMsgReq) Reset ¶
func (x *CallbackSendSingleMsgReq) Reset()
func (*CallbackSendSingleMsgReq) String ¶
func (x *CallbackSendSingleMsgReq) String() string
type CommonCallbackReq ¶
type CommonCallbackReq struct { SendID string `protobuf:"bytes,1,opt,name=SendID,proto3" json:"SendID,omitempty"` CallbackCommand CallbackCommand `protobuf:"varint,2,opt,name=CallbackCommand,proto3,enum=pb.CallbackCommand" json:"CallbackCommand,omitempty"` ServerMsgID string `protobuf:"bytes,3,opt,name=ServerMsgID,proto3" json:"ServerMsgID,omitempty"` ClientMsgID string `protobuf:"bytes,4,opt,name=ClientMsgID,proto3" json:"ClientMsgID,omitempty"` ConversationType int32 `protobuf:"varint,5,opt,name=ConversationType,proto3" json:"ConversationType,omitempty"` ContentType int32 `protobuf:"varint,6,opt,name=ContentType,proto3" json:"ContentType,omitempty"` CreateTime int64 `protobuf:"varint,7,opt,name=CreateTime,proto3" json:"CreateTime,omitempty"` Content []byte `protobuf:"bytes,8,opt,name=Content,proto3" json:"Content,omitempty"` // contains filtered or unexported fields }
func (*CommonCallbackReq) Descriptor
deprecated
func (*CommonCallbackReq) Descriptor() ([]byte, []int)
Deprecated: Use CommonCallbackReq.ProtoReflect.Descriptor instead.
func (*CommonCallbackReq) GetCallbackCommand ¶
func (x *CommonCallbackReq) GetCallbackCommand() CallbackCommand
func (*CommonCallbackReq) GetClientMsgID ¶
func (x *CommonCallbackReq) GetClientMsgID() string
func (*CommonCallbackReq) GetContent ¶
func (x *CommonCallbackReq) GetContent() []byte
func (*CommonCallbackReq) GetContentType ¶
func (x *CommonCallbackReq) GetContentType() int32
func (*CommonCallbackReq) GetConversationType ¶
func (x *CommonCallbackReq) GetConversationType() int32
func (*CommonCallbackReq) GetCreateTime ¶
func (x *CommonCallbackReq) GetCreateTime() int64
func (*CommonCallbackReq) GetSendID ¶
func (x *CommonCallbackReq) GetSendID() string
func (*CommonCallbackReq) GetServerMsgID ¶
func (x *CommonCallbackReq) GetServerMsgID() string
func (*CommonCallbackReq) ProtoMessage ¶
func (*CommonCallbackReq) ProtoMessage()
func (*CommonCallbackReq) ProtoReflect ¶
func (x *CommonCallbackReq) ProtoReflect() protoreflect.Message
func (*CommonCallbackReq) Reset ¶
func (x *CommonCallbackReq) Reset()
func (*CommonCallbackReq) String ¶
func (x *CommonCallbackReq) String() string
type CommonCallbackResp ¶
type CommonCallbackResp struct { ActionCode ActionCode `protobuf:"varint,1,opt,name=ActionCode,proto3,enum=pb.ActionCode" json:"ActionCode,omitempty"` ErrCode ErrCode `protobuf:"varint,2,opt,name=ErrCode,proto3,enum=pb.ErrCode" json:"ErrCode,omitempty"` ErrMsg string `protobuf:"bytes,3,opt,name=ErrMsg,proto3" json:"ErrMsg,omitempty"` // contains filtered or unexported fields }
func (*CommonCallbackResp) Descriptor
deprecated
func (*CommonCallbackResp) Descriptor() ([]byte, []int)
Deprecated: Use CommonCallbackResp.ProtoReflect.Descriptor instead.
func (*CommonCallbackResp) GetActionCode ¶
func (x *CommonCallbackResp) GetActionCode() ActionCode
func (*CommonCallbackResp) GetErrCode ¶
func (x *CommonCallbackResp) GetErrCode() ErrCode
func (*CommonCallbackResp) GetErrMsg ¶
func (x *CommonCallbackResp) GetErrMsg() string
func (*CommonCallbackResp) ProtoMessage ¶
func (*CommonCallbackResp) ProtoMessage()
func (*CommonCallbackResp) ProtoReflect ¶
func (x *CommonCallbackResp) ProtoReflect() protoreflect.Message
func (*CommonCallbackResp) Reset ¶
func (x *CommonCallbackResp) Reset()
func (*CommonCallbackResp) String ¶
func (x *CommonCallbackResp) String() string
type ErrCode ¶
type ErrCode int32
func (ErrCode) Descriptor ¶
func (ErrCode) Descriptor() protoreflect.EnumDescriptor
func (ErrCode) EnumDescriptor
deprecated
func (ErrCode) Number ¶
func (x ErrCode) Number() protoreflect.EnumNumber
func (ErrCode) Type ¶
func (ErrCode) Type() protoreflect.EnumType
type MsgcallbackServiceClient ¶
type MsgcallbackServiceClient interface { CallbackBeforeSendGroupMsg(ctx context.Context, in *CallbackSendGroupMsgReq, opts ...grpc.CallOption) (*CommonCallbackResp, error) CallbackAfterSendGroupMsg(ctx context.Context, in *CallbackSendGroupMsgReq, opts ...grpc.CallOption) (*CommonCallbackResp, error) CallbackBeforeSendSingleMsg(ctx context.Context, in *CallbackSendSingleMsgReq, opts ...grpc.CallOption) (*CommonCallbackResp, error) CallbackAfterSendSingleMsg(ctx context.Context, in *CallbackSendSingleMsgReq, opts ...grpc.CallOption) (*CommonCallbackResp, error) }
MsgcallbackServiceClient is the client API for MsgcallbackService 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 NewMsgcallbackServiceClient ¶
func NewMsgcallbackServiceClient(cc grpc.ClientConnInterface) MsgcallbackServiceClient
type MsgcallbackServiceServer ¶
type MsgcallbackServiceServer interface { CallbackBeforeSendGroupMsg(context.Context, *CallbackSendGroupMsgReq) (*CommonCallbackResp, error) CallbackAfterSendGroupMsg(context.Context, *CallbackSendGroupMsgReq) (*CommonCallbackResp, error) CallbackBeforeSendSingleMsg(context.Context, *CallbackSendSingleMsgReq) (*CommonCallbackResp, error) CallbackAfterSendSingleMsg(context.Context, *CallbackSendSingleMsgReq) (*CommonCallbackResp, error) // contains filtered or unexported methods }
MsgcallbackServiceServer is the server API for MsgcallbackService service. All implementations must embed UnimplementedMsgcallbackServiceServer for forward compatibility
type UnimplementedMsgcallbackServiceServer ¶
type UnimplementedMsgcallbackServiceServer struct { }
UnimplementedMsgcallbackServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedMsgcallbackServiceServer) CallbackAfterSendGroupMsg ¶
func (UnimplementedMsgcallbackServiceServer) CallbackAfterSendGroupMsg(context.Context, *CallbackSendGroupMsgReq) (*CommonCallbackResp, error)
func (UnimplementedMsgcallbackServiceServer) CallbackAfterSendSingleMsg ¶
func (UnimplementedMsgcallbackServiceServer) CallbackAfterSendSingleMsg(context.Context, *CallbackSendSingleMsgReq) (*CommonCallbackResp, error)
func (UnimplementedMsgcallbackServiceServer) CallbackBeforeSendGroupMsg ¶
func (UnimplementedMsgcallbackServiceServer) CallbackBeforeSendGroupMsg(context.Context, *CallbackSendGroupMsgReq) (*CommonCallbackResp, error)
func (UnimplementedMsgcallbackServiceServer) CallbackBeforeSendSingleMsg ¶
func (UnimplementedMsgcallbackServiceServer) CallbackBeforeSendSingleMsg(context.Context, *CallbackSendSingleMsgReq) (*CommonCallbackResp, error)
type UnsafeMsgcallbackServiceServer ¶
type UnsafeMsgcallbackServiceServer interface {
// contains filtered or unexported methods
}
UnsafeMsgcallbackServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MsgcallbackServiceServer will result in compilation errors.