contracts

package
v0.51.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 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 added in v0.46.0

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

func (*BulkPushEventRequest) Descriptor deprecated added in v0.46.0

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

Deprecated: Use BulkPushEventRequest.ProtoReflect.Descriptor instead.

func (*BulkPushEventRequest) GetEvents added in v0.46.0

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

func (*BulkPushEventRequest) ProtoMessage added in v0.46.0

func (*BulkPushEventRequest) ProtoMessage()

func (*BulkPushEventRequest) ProtoReflect added in v0.46.0

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

func (*BulkPushEventRequest) Reset added in v0.46.0

func (x *BulkPushEventRequest) Reset()

func (*BulkPushEventRequest) String added in v0.46.0

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 payload for the event
	AdditionalMetadata *string `protobuf:"bytes,6,opt,name=additionalMetadata,proto3,oneof" json:"additionalMetadata,omitempty"`
	// contains filtered or unexported fields
}

func (*Event) Descriptor deprecated

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

Deprecated: Use Event.ProtoReflect.Descriptor instead.

func (*Event) GetAdditionalMetadata added in v0.25.0

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) 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 added in v0.46.0

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

func (*Events) Descriptor deprecated added in v0.46.0

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

Deprecated: Use Events.ProtoReflect.Descriptor instead.

func (*Events) GetEvents added in v0.46.0

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

func (*Events) ProtoMessage added in v0.46.0

func (*Events) ProtoMessage()

func (*Events) ProtoReflect added in v0.46.0

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

func (*Events) Reset added in v0.46.0

func (x *Events) Reset()

func (*Events) String added in v0.46.0

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"`
	// contains filtered or unexported fields
}

func (*PushEventRequest) Descriptor deprecated

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

Deprecated: Use PushEventRequest.ProtoReflect.Descriptor instead.

func (*PushEventRequest) GetAdditionalMetadata added in v0.25.0

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) 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 added in v0.14.0

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"`
	// contains filtered or unexported fields
}

func (*PutLogRequest) Descriptor deprecated added in v0.14.0

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

Deprecated: Use PutLogRequest.ProtoReflect.Descriptor instead.

func (*PutLogRequest) GetCreatedAt added in v0.14.0

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

func (*PutLogRequest) GetLevel added in v0.14.0

func (x *PutLogRequest) GetLevel() string

func (*PutLogRequest) GetMessage added in v0.14.0

func (x *PutLogRequest) GetMessage() string

func (*PutLogRequest) GetMetadata added in v0.14.0

func (x *PutLogRequest) GetMetadata() string

func (*PutLogRequest) GetStepRunId added in v0.14.0

func (x *PutLogRequest) GetStepRunId() string

func (*PutLogRequest) ProtoMessage added in v0.14.0

func (*PutLogRequest) ProtoMessage()

func (*PutLogRequest) ProtoReflect added in v0.14.0

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

func (*PutLogRequest) Reset added in v0.14.0

func (x *PutLogRequest) Reset()

func (*PutLogRequest) String added in v0.14.0

func (x *PutLogRequest) String() string

type PutLogResponse added in v0.14.0

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

func (*PutLogResponse) Descriptor deprecated added in v0.14.0

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

Deprecated: Use PutLogResponse.ProtoReflect.Descriptor instead.

func (*PutLogResponse) ProtoMessage added in v0.14.0

func (*PutLogResponse) ProtoMessage()

func (*PutLogResponse) ProtoReflect added in v0.14.0

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

func (*PutLogResponse) Reset added in v0.14.0

func (x *PutLogResponse) Reset()

func (*PutLogResponse) String added in v0.14.0

func (x *PutLogResponse) String() string

type PutStreamEventRequest added in v0.19.0

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"`
	// contains filtered or unexported fields
}

func (*PutStreamEventRequest) Descriptor deprecated added in v0.19.0

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

Deprecated: Use PutStreamEventRequest.ProtoReflect.Descriptor instead.

func (*PutStreamEventRequest) GetCreatedAt added in v0.19.0

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

func (*PutStreamEventRequest) GetMessage added in v0.19.0

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

func (*PutStreamEventRequest) GetMetadata added in v0.19.0

func (x *PutStreamEventRequest) GetMetadata() string

func (*PutStreamEventRequest) GetStepRunId added in v0.19.0

func (x *PutStreamEventRequest) GetStepRunId() string

func (*PutStreamEventRequest) ProtoMessage added in v0.19.0

func (*PutStreamEventRequest) ProtoMessage()

func (*PutStreamEventRequest) ProtoReflect added in v0.19.0

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

func (*PutStreamEventRequest) Reset added in v0.19.0

func (x *PutStreamEventRequest) Reset()

func (*PutStreamEventRequest) String added in v0.19.0

func (x *PutStreamEventRequest) String() string

type PutStreamEventResponse added in v0.19.0

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

func (*PutStreamEventResponse) Descriptor deprecated added in v0.19.0

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

Deprecated: Use PutStreamEventResponse.ProtoReflect.Descriptor instead.

func (*PutStreamEventResponse) ProtoMessage added in v0.19.0

func (*PutStreamEventResponse) ProtoMessage()

func (*PutStreamEventResponse) ProtoReflect added in v0.19.0

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

func (*PutStreamEventResponse) Reset added in v0.19.0

func (x *PutStreamEventResponse) Reset()

func (*PutStreamEventResponse) String added in v0.19.0

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 added in v0.46.0

func (UnimplementedEventsServiceServer) Push

func (UnimplementedEventsServiceServer) PutLog added in v0.14.0

func (UnimplementedEventsServiceServer) PutStreamEvent added in v0.19.0

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