contracts

package
v0.73.98 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EventsService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "EventsService",
	HandlerType: (*EventsServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Push",
			Handler:    _EventsService_Push_Handler,
		},
		{
			MethodName: "BulkPush",
			Handler:    _EventsService_BulkPush_Handler,
		},
		{
			MethodName: "ReplaySingleEvent",
			Handler:    _EventsService_ReplaySingleEvent_Handler,
		},
		{
			MethodName: "PutLog",
			Handler:    _EventsService_PutLog_Handler,
		},
		{
			MethodName: "PutStreamEvent",
			Handler:    _EventsService_PutStreamEvent_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "events.proto",
}

EventsService_ServiceDesc is the grpc.ServiceDesc for EventsService 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_events_proto protoreflect.FileDescriptor

Functions

func RegisterEventsServiceServer

func RegisterEventsServiceServer(s grpc.ServiceRegistrar, srv EventsServiceServer)

Types

type BulkPushEventRequest

type BulkPushEventRequest struct {
	Events []*PushEventRequest `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"`
	// contains filtered or unexported fields
}

func (*BulkPushEventRequest) Descriptor deprecated

func (*BulkPushEventRequest) Descriptor() ([]byte, []int)

Deprecated: Use BulkPushEventRequest.ProtoReflect.Descriptor instead.

func (*BulkPushEventRequest) GetEvents

func (x *BulkPushEventRequest) GetEvents() []*PushEventRequest

func (*BulkPushEventRequest) ProtoMessage

func (*BulkPushEventRequest) ProtoMessage()

func (*BulkPushEventRequest) ProtoReflect

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

func (*BulkPushEventRequest) Reset

func (x *BulkPushEventRequest) Reset()

func (*BulkPushEventRequest) String

func (x *BulkPushEventRequest) String() string

type Event

type Event struct {

	// the tenant id
	TenantId string `protobuf:"bytes,1,opt,name=tenantId,proto3" json:"tenantId,omitempty"`
	// the id of the event
	EventId string `protobuf:"bytes,2,opt,name=eventId,proto3" json:"eventId,omitempty"`
	// the key for the event
	Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`
	// the payload for the event
	Payload string `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"`
	// when the event was generated
	EventTimestamp *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=eventTimestamp,proto3" json:"eventTimestamp,omitempty"`
	// the additional metadata for the event
	AdditionalMetadata *string `protobuf:"bytes,6,opt,name=additionalMetadata,proto3,oneof" json:"additionalMetadata,omitempty"`
	// the scope associated with this filter. Used for subsetting candidate filters at evaluation time
	Scope *string `protobuf:"bytes,7,opt,name=scope,proto3,oneof" json:"scope,omitempty"`
	// contains filtered or unexported fields
}

func (*Event) Descriptor deprecated

func (*Event) Descriptor() ([]byte, []int)

Deprecated: Use Event.ProtoReflect.Descriptor instead.

func (*Event) GetAdditionalMetadata

func (x *Event) GetAdditionalMetadata() string

func (*Event) GetEventId

func (x *Event) GetEventId() string

func (*Event) GetEventTimestamp

func (x *Event) GetEventTimestamp() *timestamppb.Timestamp

func (*Event) GetKey

func (x *Event) GetKey() string

func (*Event) GetPayload

func (x *Event) GetPayload() string

func (*Event) GetScope

func (x *Event) GetScope() string

func (*Event) GetTenantId

func (x *Event) GetTenantId() string

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) ProtoReflect

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

func (*Event) Reset

func (x *Event) Reset()

func (*Event) String

func (x *Event) String() string

type Events

type Events struct {
	Events []*Event `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"`
	// contains filtered or unexported fields
}

func (*Events) Descriptor deprecated

func (*Events) Descriptor() ([]byte, []int)

Deprecated: Use Events.ProtoReflect.Descriptor instead.

func (*Events) GetEvents

func (x *Events) GetEvents() []*Event

func (*Events) ProtoMessage

func (*Events) ProtoMessage()

func (*Events) ProtoReflect

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

func (*Events) Reset

func (x *Events) Reset()

func (*Events) String

func (x *Events) String() string

type EventsServiceClient

type EventsServiceClient interface {
	Push(ctx context.Context, in *PushEventRequest, opts ...grpc.CallOption) (*Event, error)
	BulkPush(ctx context.Context, in *BulkPushEventRequest, opts ...grpc.CallOption) (*Events, error)
	ReplaySingleEvent(ctx context.Context, in *ReplayEventRequest, opts ...grpc.CallOption) (*Event, error)
	PutLog(ctx context.Context, in *PutLogRequest, opts ...grpc.CallOption) (*PutLogResponse, error)
	PutStreamEvent(ctx context.Context, in *PutStreamEventRequest, opts ...grpc.CallOption) (*PutStreamEventResponse, error)
}

EventsServiceClient is the client API for EventsService 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 EventsServiceServer

type EventsServiceServer interface {
	Push(context.Context, *PushEventRequest) (*Event, error)
	BulkPush(context.Context, *BulkPushEventRequest) (*Events, error)
	ReplaySingleEvent(context.Context, *ReplayEventRequest) (*Event, error)
	PutLog(context.Context, *PutLogRequest) (*PutLogResponse, error)
	PutStreamEvent(context.Context, *PutStreamEventRequest) (*PutStreamEventResponse, error)
	// contains filtered or unexported methods
}

EventsServiceServer is the server API for EventsService service. All implementations must embed UnimplementedEventsServiceServer for forward compatibility

type PushEventRequest

type PushEventRequest struct {

	// the key for the event
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// the payload for the event
	Payload string `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
	// when the event was generated
	EventTimestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=eventTimestamp,proto3" json:"eventTimestamp,omitempty"`
	// metadata for the event
	AdditionalMetadata *string `protobuf:"bytes,4,opt,name=additionalMetadata,proto3,oneof" json:"additionalMetadata,omitempty"`
	Priority           *int32  `protobuf:"varint,5,opt,name=priority,proto3,oneof" json:"priority,omitempty"`
	// the scope associated with this filter. Used for subsetting candidate filters at evaluation time
	Scope *string `protobuf:"bytes,6,opt,name=scope,proto3,oneof" json:"scope,omitempty"`
	// contains filtered or unexported fields
}

func (*PushEventRequest) Descriptor deprecated

func (*PushEventRequest) Descriptor() ([]byte, []int)

Deprecated: Use PushEventRequest.ProtoReflect.Descriptor instead.

func (*PushEventRequest) GetAdditionalMetadata

func (x *PushEventRequest) GetAdditionalMetadata() string

func (*PushEventRequest) GetEventTimestamp

func (x *PushEventRequest) GetEventTimestamp() *timestamppb.Timestamp

func (*PushEventRequest) GetKey

func (x *PushEventRequest) GetKey() string

func (*PushEventRequest) GetPayload

func (x *PushEventRequest) GetPayload() string

func (*PushEventRequest) GetPriority

func (x *PushEventRequest) GetPriority() int32

func (*PushEventRequest) GetScope

func (x *PushEventRequest) GetScope() string

func (*PushEventRequest) ProtoMessage

func (*PushEventRequest) ProtoMessage()

func (*PushEventRequest) ProtoReflect

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

func (*PushEventRequest) Reset

func (x *PushEventRequest) Reset()

func (*PushEventRequest) String

func (x *PushEventRequest) String() string

type PutLogRequest

type PutLogRequest struct {

	// the step run id for the request
	StepRunId string `protobuf:"bytes,1,opt,name=stepRunId,proto3" json:"stepRunId,omitempty"`
	// when the log line was created
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
	// the log line message
	Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	// the log line level
	Level *string `protobuf:"bytes,4,opt,name=level,proto3,oneof" json:"level,omitempty"`
	// associated log line metadata
	Metadata string `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// the retry count of the task run
	TaskRetryCount *int32 `protobuf:"varint,6,opt,name=taskRetryCount,proto3,oneof" json:"taskRetryCount,omitempty"`
	// contains filtered or unexported fields
}

func (*PutLogRequest) Descriptor deprecated

func (*PutLogRequest) Descriptor() ([]byte, []int)

Deprecated: Use PutLogRequest.ProtoReflect.Descriptor instead.

func (*PutLogRequest) GetCreatedAt

func (x *PutLogRequest) GetCreatedAt() *timestamppb.Timestamp

func (*PutLogRequest) GetLevel

func (x *PutLogRequest) GetLevel() string

func (*PutLogRequest) GetMessage

func (x *PutLogRequest) GetMessage() string

func (*PutLogRequest) GetMetadata

func (x *PutLogRequest) GetMetadata() string

func (*PutLogRequest) GetStepRunId

func (x *PutLogRequest) GetStepRunId() string

func (*PutLogRequest) GetTaskRetryCount

func (x *PutLogRequest) GetTaskRetryCount() int32

func (*PutLogRequest) ProtoMessage

func (*PutLogRequest) ProtoMessage()

func (*PutLogRequest) ProtoReflect

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

func (*PutLogRequest) Reset

func (x *PutLogRequest) Reset()

func (*PutLogRequest) String

func (x *PutLogRequest) String() string

type PutLogResponse

type PutLogResponse struct {
	// contains filtered or unexported fields
}

func (*PutLogResponse) Descriptor deprecated

func (*PutLogResponse) Descriptor() ([]byte, []int)

Deprecated: Use PutLogResponse.ProtoReflect.Descriptor instead.

func (*PutLogResponse) ProtoMessage

func (*PutLogResponse) ProtoMessage()

func (*PutLogResponse) ProtoReflect

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

func (*PutLogResponse) Reset

func (x *PutLogResponse) Reset()

func (*PutLogResponse) String

func (x *PutLogResponse) String() string

type PutStreamEventRequest

type PutStreamEventRequest struct {

	// the step run id for the request
	StepRunId string `protobuf:"bytes,1,opt,name=stepRunId,proto3" json:"stepRunId,omitempty"`
	// when the stream event was created
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
	// the stream event message
	Message []byte `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	// associated stream event metadata
	Metadata   string `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"`
	EventIndex *int64 `protobuf:"varint,6,opt,name=eventIndex,proto3,oneof" json:"eventIndex,omitempty"`
	// contains filtered or unexported fields
}

func (*PutStreamEventRequest) Descriptor deprecated

func (*PutStreamEventRequest) Descriptor() ([]byte, []int)

Deprecated: Use PutStreamEventRequest.ProtoReflect.Descriptor instead.

func (*PutStreamEventRequest) GetCreatedAt

func (x *PutStreamEventRequest) GetCreatedAt() *timestamppb.Timestamp

func (*PutStreamEventRequest) GetEventIndex

func (x *PutStreamEventRequest) GetEventIndex() int64

func (*PutStreamEventRequest) GetMessage

func (x *PutStreamEventRequest) GetMessage() []byte

func (*PutStreamEventRequest) GetMetadata

func (x *PutStreamEventRequest) GetMetadata() string

func (*PutStreamEventRequest) GetStepRunId

func (x *PutStreamEventRequest) GetStepRunId() string

func (*PutStreamEventRequest) ProtoMessage

func (*PutStreamEventRequest) ProtoMessage()

func (*PutStreamEventRequest) ProtoReflect

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

func (*PutStreamEventRequest) Reset

func (x *PutStreamEventRequest) Reset()

func (*PutStreamEventRequest) String

func (x *PutStreamEventRequest) String() string

type PutStreamEventResponse

type PutStreamEventResponse struct {
	// contains filtered or unexported fields
}

func (*PutStreamEventResponse) Descriptor deprecated

func (*PutStreamEventResponse) Descriptor() ([]byte, []int)

Deprecated: Use PutStreamEventResponse.ProtoReflect.Descriptor instead.

func (*PutStreamEventResponse) ProtoMessage

func (*PutStreamEventResponse) ProtoMessage()

func (*PutStreamEventResponse) ProtoReflect

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

func (*PutStreamEventResponse) Reset

func (x *PutStreamEventResponse) Reset()

func (*PutStreamEventResponse) String

func (x *PutStreamEventResponse) String() string

type ReplayEventRequest

type ReplayEventRequest struct {

	// the event id to replay
	EventId string `protobuf:"bytes,1,opt,name=eventId,proto3" json:"eventId,omitempty"`
	// contains filtered or unexported fields
}

func (*ReplayEventRequest) Descriptor deprecated

func (*ReplayEventRequest) Descriptor() ([]byte, []int)

Deprecated: Use ReplayEventRequest.ProtoReflect.Descriptor instead.

func (*ReplayEventRequest) GetEventId

func (x *ReplayEventRequest) GetEventId() string

func (*ReplayEventRequest) ProtoMessage

func (*ReplayEventRequest) ProtoMessage()

func (*ReplayEventRequest) ProtoReflect

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

func (*ReplayEventRequest) Reset

func (x *ReplayEventRequest) Reset()

func (*ReplayEventRequest) String

func (x *ReplayEventRequest) String() string

type UnimplementedEventsServiceServer

type UnimplementedEventsServiceServer struct {
}

UnimplementedEventsServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedEventsServiceServer) BulkPush

func (UnimplementedEventsServiceServer) Push

func (UnimplementedEventsServiceServer) PutLog

func (UnimplementedEventsServiceServer) PutStreamEvent

func (UnimplementedEventsServiceServer) ReplaySingleEvent

type UnsafeEventsServiceServer

type UnsafeEventsServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeEventsServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EventsServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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