Documentation
¶
Index ¶
- Variables
- func RegisterEvhubProcessorServer(s grpc.ServiceRegistrar, srv EvhubProcessorServer)
- type DispatchReq
- func (*DispatchReq) Descriptor() ([]byte, []int)deprecated
- func (x *DispatchReq) GetEvent() *comm.Event
- func (x *DispatchReq) GetEventId() string
- func (x *DispatchReq) GetPassBack() []byte
- func (x *DispatchReq) GetRepeatTimes() uint32
- func (x *DispatchReq) GetRetryTimes() uint32
- func (*DispatchReq) ProtoMessage()
- func (x *DispatchReq) ProtoReflect() protoreflect.Message
- func (x *DispatchReq) Reset()
- func (x *DispatchReq) String() string
- type DispatchRsp
- func (*DispatchRsp) Descriptor() ([]byte, []int)deprecated
- func (x *DispatchRsp) GetPassBack() []byte
- func (x *DispatchRsp) GetRet() *comm.Result
- func (*DispatchRsp) ProtoMessage()
- func (x *DispatchRsp) ProtoReflect() protoreflect.Message
- func (x *DispatchRsp) Reset()
- func (x *DispatchRsp) String() string
- type EvhubProcessorClient
- type EvhubProcessorServer
- type UnimplementedEvhubProcessorServer
- type UnsafeEvhubProcessorServer
Constants ¶
This section is empty.
Variables ¶
var EvhubProcessor_ServiceDesc = grpc.ServiceDesc{ ServiceName: "evhub_processor.evhubProcessor", HandlerType: (*EvhubProcessorServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Dispatch", Handler: _EvhubProcessor_Dispatch_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "processor/processor.proto", }
EvhubProcessor_ServiceDesc is the grpc.ServiceDesc for EvhubProcessor service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_processor_processor_proto protoreflect.FileDescriptor
Functions ¶
func RegisterEvhubProcessorServer ¶
func RegisterEvhubProcessorServer(s grpc.ServiceRegistrar, srv EvhubProcessorServer)
Types ¶
type DispatchReq ¶
type DispatchReq struct { EventId string `protobuf:"bytes,1,opt,name=event_id,json=eventId,proto3" json:"event_id,omitempty"` Event *comm.Event `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` RetryTimes uint32 `protobuf:"varint,3,opt,name=retry_times,json=retryTimes,proto3" json:"retry_times,omitempty"` RepeatTimes uint32 `protobuf:"varint,4,opt,name=repeat_times,json=repeatTimes,proto3" json:"repeat_times,omitempty"` //pass back PassBack []byte `protobuf:"bytes,5,opt,name=pass_back,json=passBack,proto3" json:"pass_back,omitempty"` // contains filtered or unexported fields }
func (*DispatchReq) Descriptor
deprecated
func (*DispatchReq) Descriptor() ([]byte, []int)
Deprecated: Use DispatchReq.ProtoReflect.Descriptor instead.
func (*DispatchReq) GetEvent ¶
func (x *DispatchReq) GetEvent() *comm.Event
func (*DispatchReq) GetEventId ¶
func (x *DispatchReq) GetEventId() string
func (*DispatchReq) GetPassBack ¶
func (x *DispatchReq) GetPassBack() []byte
func (*DispatchReq) GetRepeatTimes ¶
func (x *DispatchReq) GetRepeatTimes() uint32
func (*DispatchReq) GetRetryTimes ¶
func (x *DispatchReq) GetRetryTimes() uint32
func (*DispatchReq) ProtoMessage ¶
func (*DispatchReq) ProtoMessage()
func (*DispatchReq) ProtoReflect ¶
func (x *DispatchReq) ProtoReflect() protoreflect.Message
func (*DispatchReq) Reset ¶
func (x *DispatchReq) Reset()
func (*DispatchReq) String ¶
func (x *DispatchReq) String() string
type DispatchRsp ¶
type DispatchRsp struct { Ret *comm.Result `protobuf:"bytes,2,opt,name=ret,proto3" json:"ret,omitempty"` PassBack []byte `protobuf:"bytes,3,opt,name=pass_back,json=passBack,proto3" json:"pass_back,omitempty"` // contains filtered or unexported fields }
func (*DispatchRsp) Descriptor
deprecated
func (*DispatchRsp) Descriptor() ([]byte, []int)
Deprecated: Use DispatchRsp.ProtoReflect.Descriptor instead.
func (*DispatchRsp) GetPassBack ¶
func (x *DispatchRsp) GetPassBack() []byte
func (*DispatchRsp) GetRet ¶
func (x *DispatchRsp) GetRet() *comm.Result
func (*DispatchRsp) ProtoMessage ¶
func (*DispatchRsp) ProtoMessage()
func (*DispatchRsp) ProtoReflect ¶
func (x *DispatchRsp) ProtoReflect() protoreflect.Message
func (*DispatchRsp) Reset ¶
func (x *DispatchRsp) Reset()
func (*DispatchRsp) String ¶
func (x *DispatchRsp) String() string
type EvhubProcessorClient ¶
type EvhubProcessorClient interface {
Dispatch(ctx context.Context, in *DispatchReq, opts ...grpc.CallOption) (*DispatchRsp, error)
}
EvhubProcessorClient is the client API for EvhubProcessor 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 NewEvhubProcessorClient ¶
func NewEvhubProcessorClient(cc grpc.ClientConnInterface) EvhubProcessorClient
type EvhubProcessorServer ¶
type EvhubProcessorServer interface {
Dispatch(context.Context, *DispatchReq) (*DispatchRsp, error)
}
EvhubProcessorServer is the server API for EvhubProcessor service. All implementations should embed UnimplementedEvhubProcessorServer for forward compatibility
type UnimplementedEvhubProcessorServer ¶
type UnimplementedEvhubProcessorServer struct { }
UnimplementedEvhubProcessorServer should be embedded to have forward compatible implementations.
func (UnimplementedEvhubProcessorServer) Dispatch ¶
func (UnimplementedEvhubProcessorServer) Dispatch(context.Context, *DispatchReq) (*DispatchRsp, error)
type UnsafeEvhubProcessorServer ¶
type UnsafeEvhubProcessorServer interface {
// contains filtered or unexported methods
}
UnsafeEvhubProcessorServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EvhubProcessorServer will result in compilation errors.