Documentation ¶
Index ¶
- Constants
- Variables
- func AddCloudEventProcessorServer[T ICloudEventProcessorServer](cb fluffy_dozm_di.ContainerBuilder, ctor any)
- func AddCloudEventProcessorServerWithExternalRegistration[T ICloudEventProcessorServer](cb fluffy_dozm_di.ContainerBuilder, ctor any, ...)
- func RegisterCloudEventProcessorServer(s grpc.ServiceRegistrar, srv CloudEventProcessorServer)
- type ByteBatch
- type CloudEventProcessorClient
- type CloudEventProcessorFluffyCoreServer
- type CloudEventProcessorServer
- type ICloudEventProcessorServer
- type ProcessCloudEventsRequest
- func (*ProcessCloudEventsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ProcessCloudEventsRequest) GetBadBatch() *ByteBatch
- func (x *ProcessCloudEventsRequest) GetBatch() *cloudevents.CloudEventBatch
- func (*ProcessCloudEventsRequest) ProtoMessage()
- func (x *ProcessCloudEventsRequest) ProtoReflect() protoreflect.Message
- func (x *ProcessCloudEventsRequest) Reset()
- func (x *ProcessCloudEventsRequest) String() string
- type ProcessCloudEventsResponse
- type UnimplementedCloudEventProcessorServer
- type UnimplementedCloudEventProcessorServerEndpointRegistration
- type UnsafeCloudEventProcessorServer
Constants ¶
const (
CloudEventProcessor_ProcessCloudEvents_FullMethodName = "/pkg.proto.cloudeventprocessor.CloudEventProcessor/ProcessCloudEvents"
)
Variables ¶
var CloudEventProcessor_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pkg.proto.cloudeventprocessor.CloudEventProcessor", HandlerType: (*CloudEventProcessorServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ProcessCloudEvents", Handler: _CloudEventProcessor_ProcessCloudEvents_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pkg/proto/cloudeventprocessor/cloudeventprocessor.proto", }
CloudEventProcessor_ServiceDesc is the grpc.ServiceDesc for CloudEventProcessor service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_pkg_proto_cloudeventprocessor_cloudeventprocessor_proto protoreflect.FileDescriptor
Functions ¶
func AddCloudEventProcessorServer ¶
func AddCloudEventProcessorServer[T ICloudEventProcessorServer](cb fluffy_dozm_di.ContainerBuilder, ctor any)
AddCloudEventProcessorServer adds the fluffycore aware grpc server
func AddCloudEventProcessorServerWithExternalRegistration ¶
func AddCloudEventProcessorServerWithExternalRegistration[T ICloudEventProcessorServer](cb fluffy_dozm_di.ContainerBuilder, ctor any, register func() endpoint.IEndpointRegistration)
AddCloudEventProcessorServerWithExternalRegistration adds the fluffycore aware grpc server and external registration service. Mainly used for grpc-gateway
func RegisterCloudEventProcessorServer ¶
func RegisterCloudEventProcessorServer(s grpc.ServiceRegistrar, srv CloudEventProcessorServer)
Types ¶
type ByteBatch ¶
type ByteBatch struct { Messages [][]byte `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"` // contains filtered or unexported fields }
func (*ByteBatch) Descriptor
deprecated
func (*ByteBatch) GetMessages ¶
func (*ByteBatch) ProtoMessage ¶
func (*ByteBatch) ProtoMessage()
func (*ByteBatch) ProtoReflect ¶
func (x *ByteBatch) ProtoReflect() protoreflect.Message
type CloudEventProcessorClient ¶
type CloudEventProcessorClient interface { // Processes a batch of cloud events. This is an all or nothing operation. If any of the events fail to process, then the entire batch is considered a failure. ProcessCloudEvents(ctx context.Context, in *ProcessCloudEventsRequest, opts ...grpc.CallOption) (*ProcessCloudEventsResponse, error) }
CloudEventProcessorClient is the client API for CloudEventProcessor 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 NewCloudEventProcessorClient ¶
func NewCloudEventProcessorClient(cc grpc.ClientConnInterface) CloudEventProcessorClient
type CloudEventProcessorFluffyCoreServer ¶
type CloudEventProcessorFluffyCoreServer struct { UnimplementedCloudEventProcessorServer UnimplementedCloudEventProcessorServerEndpointRegistration }
CloudEventProcessorFluffyCoreServer defines the grpc server truct
func (*CloudEventProcessorFluffyCoreServer) ProcessCloudEvents ¶
func (s *CloudEventProcessorFluffyCoreServer) ProcessCloudEvents(ctx context.Context, request *ProcessCloudEventsRequest) (*ProcessCloudEventsResponse, error)
ProcessCloudEvents...
func (*CloudEventProcessorFluffyCoreServer) Register ¶
func (srv *CloudEventProcessorFluffyCoreServer) Register(s *grpc.Server)
Register the server with grpc
type CloudEventProcessorServer ¶
type CloudEventProcessorServer interface { // Processes a batch of cloud events. This is an all or nothing operation. If any of the events fail to process, then the entire batch is considered a failure. ProcessCloudEvents(context.Context, *ProcessCloudEventsRequest) (*ProcessCloudEventsResponse, error) // contains filtered or unexported methods }
CloudEventProcessorServer is the server API for CloudEventProcessor service. All implementations must embed UnimplementedCloudEventProcessorServer for forward compatibility
type ICloudEventProcessorServer ¶
type ICloudEventProcessorServer interface { CloudEventProcessorServer }
ICloudEventProcessorServer defines the grpc server
type ProcessCloudEventsRequest ¶
type ProcessCloudEventsRequest struct { Batch *cloudevents.CloudEventBatch `protobuf:"bytes,1,opt,name=batch,proto3" json:"batch,omitempty"` BadBatch *ByteBatch `protobuf:"bytes,2,opt,name=bad_batch,json=badBatch,proto3" json:"bad_batch,omitempty"` // contains filtered or unexported fields }
func (*ProcessCloudEventsRequest) Descriptor
deprecated
func (*ProcessCloudEventsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ProcessCloudEventsRequest.ProtoReflect.Descriptor instead.
func (*ProcessCloudEventsRequest) GetBadBatch ¶
func (x *ProcessCloudEventsRequest) GetBadBatch() *ByteBatch
func (*ProcessCloudEventsRequest) GetBatch ¶
func (x *ProcessCloudEventsRequest) GetBatch() *cloudevents.CloudEventBatch
func (*ProcessCloudEventsRequest) ProtoMessage ¶
func (*ProcessCloudEventsRequest) ProtoMessage()
func (*ProcessCloudEventsRequest) ProtoReflect ¶
func (x *ProcessCloudEventsRequest) ProtoReflect() protoreflect.Message
func (*ProcessCloudEventsRequest) Reset ¶
func (x *ProcessCloudEventsRequest) Reset()
func (*ProcessCloudEventsRequest) String ¶
func (x *ProcessCloudEventsRequest) String() string
type ProcessCloudEventsResponse ¶
type ProcessCloudEventsResponse struct {
// contains filtered or unexported fields
}
func (*ProcessCloudEventsResponse) Descriptor
deprecated
func (*ProcessCloudEventsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ProcessCloudEventsResponse.ProtoReflect.Descriptor instead.
func (*ProcessCloudEventsResponse) ProtoMessage ¶
func (*ProcessCloudEventsResponse) ProtoMessage()
func (*ProcessCloudEventsResponse) ProtoReflect ¶
func (x *ProcessCloudEventsResponse) ProtoReflect() protoreflect.Message
func (*ProcessCloudEventsResponse) Reset ¶
func (x *ProcessCloudEventsResponse) Reset()
func (*ProcessCloudEventsResponse) String ¶
func (x *ProcessCloudEventsResponse) String() string
type UnimplementedCloudEventProcessorServer ¶
type UnimplementedCloudEventProcessorServer struct { }
UnimplementedCloudEventProcessorServer must be embedded to have forward compatible implementations.
func (UnimplementedCloudEventProcessorServer) ProcessCloudEvents ¶
func (UnimplementedCloudEventProcessorServer) ProcessCloudEvents(context.Context, *ProcessCloudEventsRequest) (*ProcessCloudEventsResponse, error)
type UnimplementedCloudEventProcessorServerEndpointRegistration ¶
type UnimplementedCloudEventProcessorServerEndpointRegistration struct { }
func (UnimplementedCloudEventProcessorServerEndpointRegistration) RegisterHandler ¶
func (UnimplementedCloudEventProcessorServerEndpointRegistration) RegisterHandler(gwmux *runtime.ServeMux, conn *grpc.ClientConn)
type UnsafeCloudEventProcessorServer ¶
type UnsafeCloudEventProcessorServer interface {
// contains filtered or unexported methods
}
UnsafeCloudEventProcessorServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CloudEventProcessorServer will result in compilation errors.