cloudeventprocessor

package
v1.0.15 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 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(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) 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) 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 (*ProcessCloudEventsRequest) GetChannel added in v1.0.8

func (x *ProcessCloudEventsRequest) GetChannel() string

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 UnimplementedFluffyCoreCloudEventProcessorServerEndpointRegistration added in v1.0.12

type UnimplementedFluffyCoreCloudEventProcessorServerEndpointRegistration struct {
}

func (UnimplementedFluffyCoreCloudEventProcessorServerEndpointRegistration) RegisterFluffyCoreHandler added in v1.0.12

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