Documentation ¶
Index ¶
- Variables
- func RegisterEventsServiceServer(s grpc.ServiceRegistrar, srv EventsServiceServer)
- type Event
- func (*Event) Descriptor() ([]byte, []int)deprecated
- func (x *Event) GetAdditionalMetadata() string
- func (x *Event) GetEventId() string
- func (x *Event) GetEventTimestamp() *timestamppb.Timestamp
- func (x *Event) GetKey() string
- func (x *Event) GetPayload() string
- func (x *Event) GetTenantId() string
- func (*Event) ProtoMessage()
- func (x *Event) ProtoReflect() protoreflect.Message
- func (x *Event) Reset()
- func (x *Event) String() string
- type EventsServiceClient
- type EventsServiceServer
- type PushEventRequest
- func (*PushEventRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PushEventRequest) GetAdditionalMetadata() string
- func (x *PushEventRequest) GetEventTimestamp() *timestamppb.Timestamp
- func (x *PushEventRequest) GetKey() string
- func (x *PushEventRequest) GetPayload() string
- func (*PushEventRequest) ProtoMessage()
- func (x *PushEventRequest) ProtoReflect() protoreflect.Message
- func (x *PushEventRequest) Reset()
- func (x *PushEventRequest) String() string
- type PutLogRequest
- func (*PutLogRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PutLogRequest) GetCreatedAt() *timestamppb.Timestamp
- func (x *PutLogRequest) GetLevel() string
- func (x *PutLogRequest) GetMessage() string
- func (x *PutLogRequest) GetMetadata() string
- func (x *PutLogRequest) GetStepRunId() string
- func (*PutLogRequest) ProtoMessage()
- func (x *PutLogRequest) ProtoReflect() protoreflect.Message
- func (x *PutLogRequest) Reset()
- func (x *PutLogRequest) String() string
- type PutLogResponse
- type PutStreamEventRequest
- func (*PutStreamEventRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PutStreamEventRequest) GetCreatedAt() *timestamppb.Timestamp
- func (x *PutStreamEventRequest) GetMessage() []byte
- func (x *PutStreamEventRequest) GetMetadata() string
- func (x *PutStreamEventRequest) GetStepRunId() string
- func (*PutStreamEventRequest) ProtoMessage()
- func (x *PutStreamEventRequest) ProtoReflect() protoreflect.Message
- func (x *PutStreamEventRequest) Reset()
- func (x *PutStreamEventRequest) String() string
- type PutStreamEventResponse
- type ReplayEventRequest
- func (*ReplayEventRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ReplayEventRequest) GetEventId() string
- func (*ReplayEventRequest) ProtoMessage()
- func (x *ReplayEventRequest) ProtoReflect() protoreflect.Message
- func (x *ReplayEventRequest) Reset()
- func (x *ReplayEventRequest) String() string
- type UnimplementedEventsServiceServer
- func (UnimplementedEventsServiceServer) Push(context.Context, *PushEventRequest) (*Event, error)
- func (UnimplementedEventsServiceServer) PutLog(context.Context, *PutLogRequest) (*PutLogResponse, error)
- func (UnimplementedEventsServiceServer) PutStreamEvent(context.Context, *PutStreamEventRequest) (*PutStreamEventResponse, error)
- func (UnimplementedEventsServiceServer) ReplaySingleEvent(context.Context, *ReplayEventRequest) (*Event, error)
- type UnsafeEventsServiceServer
Constants ¶
This section is empty.
Variables ¶
var EventsService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "EventsService", HandlerType: (*EventsServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Push", Handler: _EventsService_Push_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)
var File_events_proto protoreflect.FileDescriptor
Functions ¶
func RegisterEventsServiceServer ¶
func RegisterEventsServiceServer(s grpc.ServiceRegistrar, srv EventsServiceServer)
Types ¶
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) GetAdditionalMetadata ¶ added in v0.25.0
func (*Event) GetEventId ¶
func (*Event) GetEventTimestamp ¶
func (x *Event) GetEventTimestamp() *timestamppb.Timestamp
func (*Event) GetPayload ¶
func (*Event) GetTenantId ¶
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) ProtoReflect ¶
func (x *Event) ProtoReflect() protoreflect.Message
type EventsServiceClient ¶
type EventsServiceClient interface { Push(ctx context.Context, in *PushEventRequest, opts ...grpc.CallOption) (*Event, 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.
func NewEventsServiceClient ¶
func NewEventsServiceClient(cc grpc.ClientConnInterface) EventsServiceClient
type EventsServiceServer ¶
type EventsServiceServer interface { Push(context.Context, *PushEventRequest) (*Event, 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) Push ¶
func (UnimplementedEventsServiceServer) Push(context.Context, *PushEventRequest) (*Event, error)
func (UnimplementedEventsServiceServer) PutLog ¶ added in v0.14.0
func (UnimplementedEventsServiceServer) PutLog(context.Context, *PutLogRequest) (*PutLogResponse, error)
func (UnimplementedEventsServiceServer) PutStreamEvent ¶ added in v0.19.0
func (UnimplementedEventsServiceServer) PutStreamEvent(context.Context, *PutStreamEventRequest) (*PutStreamEventResponse, error)
func (UnimplementedEventsServiceServer) ReplaySingleEvent ¶
func (UnimplementedEventsServiceServer) ReplaySingleEvent(context.Context, *ReplayEventRequest) (*Event, error)
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.