Documentation ¶
Index ¶
- Constants
- Variables
- func AddCloudEventProcessorServer(cb fluffy_dozm_di.ContainerBuilder, ctor any)
- func AddCloudEventProcessorServerWithExternalRegistration(cb fluffy_dozm_di.ContainerBuilder, ctor any, ...)
- func RegisterCloudEventProcessorServer(s grpc.ServiceRegistrar, srv CloudEventProcessorServer)
- type ByteBatch
- type CloudEventProcessorClient
- type CloudEventProcessorFluffyCoreServer
- type CloudEventProcessorServer
- type IFluffyCoreCloudEventProcessorServer
- type ProcessCloudEventsRequest
- func (*ProcessCloudEventsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ProcessCloudEventsRequest) GetBadBatch() *ByteBatch
- func (x *ProcessCloudEventsRequest) GetBatch() *cloudevents.CloudEventBatch
- func (x *ProcessCloudEventsRequest) GetChannel() string
- func (*ProcessCloudEventsRequest) ProtoMessage()
- func (x *ProcessCloudEventsRequest) ProtoReflect() protoreflect.Message
- func (x *ProcessCloudEventsRequest) Reset()
- func (x *ProcessCloudEventsRequest) String() string
- type ProcessCloudEventsResponse
- type UnimplementedCloudEventProcessorServer
- type UnimplementedFluffyCoreCloudEventProcessorServerEndpointRegistration
- 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(cb fluffy_dozm_di.ContainerBuilder, ctor any)
AddCloudEventProcessorServer adds the fluffycore aware grpc server
func AddCloudEventProcessorServerWithExternalRegistration ¶
func AddCloudEventProcessorServerWithExternalRegistration(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 UnimplementedFluffyCoreCloudEventProcessorServerEndpointRegistration }
CloudEventProcessorFluffyCoreServer defines the grpc server truct
func (*CloudEventProcessorFluffyCoreServer) ProcessCloudEvents ¶
func (s *CloudEventProcessorFluffyCoreServer) ProcessCloudEvents(ctx context.Context, request *ProcessCloudEventsRequest) (*ProcessCloudEventsResponse, error)
ProcessCloudEvents...
func (*CloudEventProcessorFluffyCoreServer) RegisterFluffyCoreGRPCService ¶ added in v1.0.12
func (srv *CloudEventProcessorFluffyCoreServer) RegisterFluffyCoreGRPCService(s *grpc.Server)
RegisterFluffyCoreGRPCService 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 IFluffyCoreCloudEventProcessorServer ¶ added in v1.0.12
type IFluffyCoreCloudEventProcessorServer interface { CloudEventProcessorServer }
IFluffyCoreCloudEventProcessorServer defines the grpc server
type ProcessCloudEventsRequest ¶
type ProcessCloudEventsRequest struct { Channel string `protobuf:"bytes,1,opt,name=channel,proto3" json:"channel,omitempty"` Batch *cloudevents.CloudEventBatch `protobuf:"bytes,2,opt,name=batch,proto3" json:"batch,omitempty"` BadBatch *ByteBatch `protobuf:"bytes,3,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) GetChannel ¶ added in v1.0.8
func (x *ProcessCloudEventsRequest) GetChannel() string
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 UnimplementedFluffyCoreCloudEventProcessorServerEndpointRegistration ¶ added in v1.0.12
type UnimplementedFluffyCoreCloudEventProcessorServerEndpointRegistration struct { }
func (UnimplementedFluffyCoreCloudEventProcessorServerEndpointRegistration) RegisterFluffyCoreHandler ¶ added in v1.0.12
func (UnimplementedFluffyCoreCloudEventProcessorServerEndpointRegistration) RegisterFluffyCoreHandler(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.