cloudeventprocessor

package
v0.0.1-initial.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CloudEventProcessor_ProcessCloudEvents_FullMethodName = "/pkg.proto.cloudeventprocessor.CloudEventProcessor/ProcessCloudEvents"
)

Variables

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

View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use ByteBatch.ProtoReflect.Descriptor instead.

func (*ByteBatch) GetMessages

func (x *ByteBatch) GetMessages() [][]byte

func (*ByteBatch) ProtoMessage

func (*ByteBatch) ProtoMessage()

func (*ByteBatch) ProtoReflect

func (x *ByteBatch) ProtoReflect() protoreflect.Message

func (*ByteBatch) Reset

func (x *ByteBatch) Reset()

func (*ByteBatch) String

func (x *ByteBatch) String() string

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.

type CloudEventProcessorFluffyCoreServer

CloudEventProcessorFluffyCoreServer defines the grpc server truct

func (*CloudEventProcessorFluffyCoreServer) ProcessCloudEvents

ProcessCloudEvents...

func (*CloudEventProcessorFluffyCoreServer) Register

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 (*ProcessCloudEventsRequest) ProtoMessage

func (*ProcessCloudEventsRequest) ProtoMessage()

func (*ProcessCloudEventsRequest) ProtoReflect

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 (*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

type UnimplementedCloudEventProcessorServerEndpointRegistration

type UnimplementedCloudEventProcessorServerEndpointRegistration struct {
}

func (UnimplementedCloudEventProcessorServerEndpointRegistration) RegisterHandler

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.

Jump to

Keyboard shortcuts

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