Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterEventsV1Server(s grpc.ServiceRegistrar, srv EventsV1Server)
- type Event
- func (*Event) Descriptor() ([]byte, []int)deprecated
- func (x *Event) GetBody() map[string]float32
- func (x *Event) GetCreated() *timestamppb.Timestamp
- func (x *Event) GetDimensions() map[string]string
- func (x *Event) GetServiceId() string
- func (x *Event) GetType() string
- func (*Event) ProtoMessage()
- func (x *Event) ProtoReflect() protoreflect.Message
- func (x *Event) Reset()
- func (x *Event) String() string
- type EventsV1Client
- type EventsV1Request
- type EventsV1Response
- func (*EventsV1Response) Descriptor() ([]byte, []int)deprecated
- func (x *EventsV1Response) GetCompleted() bool
- func (x *EventsV1Response) GetCreated() *timestamppb.Timestamp
- func (x *EventsV1Response) GetProcessed() int32
- func (*EventsV1Response) ProtoMessage()
- func (x *EventsV1Response) ProtoReflect() protoreflect.Message
- func (x *EventsV1Response) Reset()
- func (x *EventsV1Response) String() string
- type EventsV1Server
- type EventsV1_EmitClient
- type EventsV1_EmitServer
- type UnimplementedEventsV1Server
- type UnsafeEventsV1Server
Constants ¶
const (
EventsV1_Emit_FullMethodName = "/events.EventsV1/Emit"
)
const (
Name = "events.v1"
)
Variables ¶
var EventsV1_ServiceDesc = grpc.ServiceDesc{ ServiceName: "events.EventsV1", HandlerType: (*EventsV1Server)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "Emit", Handler: _EventsV1_Emit_Handler, ClientStreams: true, }, }, Metadata: "integrations/events/v1/definition/definition.proto", }
EventsV1_ServiceDesc is the grpc.ServiceDesc for EventsV1 service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_integrations_events_v1_definition_definition_proto protoreflect.FileDescriptor
var File_integrations_events_v1_definition_event_proto protoreflect.FileDescriptor
Functions ¶
func RegisterEventsV1Server ¶
func RegisterEventsV1Server(s grpc.ServiceRegistrar, srv EventsV1Server)
Types ¶
type Event ¶
type Event struct {
// Type of the Event
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
// Creation Timestamp of the events. Defaults to the current timestamp
Created *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created,proto3,oneof" json:"created,omitempty"`
// Service ID of the Event
ServiceId string `protobuf:"bytes,3,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
// Event Dimensions
Dimensions map[string]string `` /* 161-byte string literal not displayed */
// Event Body values
Body map[string]float32 `` /* 151-byte string literal not displayed */
// contains filtered or unexported fields
}
Event Message Definition
func (*Event) Descriptor
deprecated
func (*Event) GetCreated ¶
func (x *Event) GetCreated() *timestamppb.Timestamp
func (*Event) GetDimensions ¶
func (*Event) GetServiceId ¶
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) ProtoReflect ¶
func (x *Event) ProtoReflect() protoreflect.Message
type EventsV1Client ¶
type EventsV1Client interface {
// Sends events to the server once the stream is closed
Emit(ctx context.Context, opts ...grpc.CallOption) (grpc.ClientStreamingClient[EventsV1Request, EventsV1Response], error)
}
EventsV1Client is the client API for EventsV1 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.
EventsV1 Service implementation
func NewEventsV1Client ¶
func NewEventsV1Client(cc grpc.ClientConnInterface) EventsV1Client
type EventsV1Request ¶
type EventsV1Request struct {
// List of the Events to produce as batch
Events []*Event `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"`
// contains filtered or unexported fields
}
Event V1 Request
func (*EventsV1Request) Descriptor
deprecated
func (*EventsV1Request) Descriptor() ([]byte, []int)
Deprecated: Use EventsV1Request.ProtoReflect.Descriptor instead.
func (*EventsV1Request) GetEvents ¶
func (x *EventsV1Request) GetEvents() []*Event
func (*EventsV1Request) ProtoMessage ¶
func (*EventsV1Request) ProtoMessage()
func (*EventsV1Request) ProtoReflect ¶
func (x *EventsV1Request) ProtoReflect() protoreflect.Message
func (*EventsV1Request) Reset ¶
func (x *EventsV1Request) Reset()
func (*EventsV1Request) String ¶
func (x *EventsV1Request) String() string
type EventsV1Response ¶
type EventsV1Response struct {
// Number of the processed Events
Processed int32 `protobuf:"varint,1,opt,name=processed,proto3" json:"processed,omitempty"`
// Defines if production was sync or async
Completed bool `protobuf:"varint,2,opt,name=completed,proto3" json:"completed,omitempty"`
// Creation Timestamp of the events. Defaults to the current timestamp
Created *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created,proto3,oneof" json:"created,omitempty"`
// contains filtered or unexported fields
}
Event V1 Response
func (*EventsV1Response) Descriptor
deprecated
func (*EventsV1Response) Descriptor() ([]byte, []int)
Deprecated: Use EventsV1Response.ProtoReflect.Descriptor instead.
func (*EventsV1Response) GetCompleted ¶
func (x *EventsV1Response) GetCompleted() bool
func (*EventsV1Response) GetCreated ¶
func (x *EventsV1Response) GetCreated() *timestamppb.Timestamp
func (*EventsV1Response) GetProcessed ¶
func (x *EventsV1Response) GetProcessed() int32
func (*EventsV1Response) ProtoMessage ¶
func (*EventsV1Response) ProtoMessage()
func (*EventsV1Response) ProtoReflect ¶
func (x *EventsV1Response) ProtoReflect() protoreflect.Message
func (*EventsV1Response) Reset ¶
func (x *EventsV1Response) Reset()
func (*EventsV1Response) String ¶
func (x *EventsV1Response) String() string
type EventsV1Server ¶
type EventsV1Server interface {
// Sends events to the server once the stream is closed
Emit(grpc.ClientStreamingServer[EventsV1Request, EventsV1Response]) error
// contains filtered or unexported methods
}
EventsV1Server is the server API for EventsV1 service. All implementations must embed UnimplementedEventsV1Server for forward compatibility.
EventsV1 Service implementation
type EventsV1_EmitClient ¶
type EventsV1_EmitClient = grpc.ClientStreamingClient[EventsV1Request, EventsV1Response]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type EventsV1_EmitServer ¶
type EventsV1_EmitServer = grpc.ClientStreamingServer[EventsV1Request, EventsV1Response]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type UnimplementedEventsV1Server ¶
type UnimplementedEventsV1Server struct{}
UnimplementedEventsV1Server must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
type UnsafeEventsV1Server ¶
type UnsafeEventsV1Server interface {
// contains filtered or unexported methods
}
UnsafeEventsV1Server may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EventsV1Server will result in compilation errors.