processor

package
v0.0.0-...-d5b0b98 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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)

View Source
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.

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

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.

Jump to

Keyboard shortcuts

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