Documentation
¶
Index ¶
- Variables
- type Event
- func (*Event) Descriptor() ([]byte, []int)deprecated
- func (x *Event) GetKind() string
- func (x *Event) GetName() string
- func (x *Event) GetProps() *structpb.Struct
- func (x *Event) GetSessionId() string
- func (x *Event) GetTimestamp() *timestamppb.Timestamp
- func (x *Event) GetTraits() *structpb.Struct
- func (x *Event) GetUserId() string
- func (*Event) ProtoMessage()
- func (x *Event) ProtoReflect() protoreflect.Message
- func (x *Event) Reset()
- func (x *Event) String() string
- type Spool
Constants ¶
This section is empty.
Variables ¶
View Source
var File_analytics_spoolpb_spool_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct {
// kind is "track" or "identify" (analytics.EventKind).
Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// props and traits hold what JSON could: the spool kept them as JSON before,
// so a value that JSON flattened (a number of any type, a struct) is
// flattened the same way here.
Props *structpb.Struct `protobuf:"bytes,3,opt,name=props,proto3" json:"props,omitempty"`
Traits *structpb.Struct `protobuf:"bytes,4,opt,name=traits,proto3" json:"traits,omitempty"`
UserId string `protobuf:"bytes,5,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
SessionId string `protobuf:"bytes,6,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
Timestamp *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
// contains filtered or unexported fields
}
func (*Event) Descriptor
deprecated
func (*Event) GetSessionId ¶
func (*Event) GetTimestamp ¶
func (x *Event) GetTimestamp() *timestamppb.Timestamp
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) ProtoReflect ¶
func (x *Event) ProtoReflect() protoreflect.Message
type Spool ¶
type Spool struct {
Events []*Event `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"`
// contains filtered or unexported fields
}
Spool is the wire schema for the analytics events saved between runs, encoded in the textual PXF format (replacing the legacy JSON spool). Event mirrors analytics.Event field for field (#523). See analytics/spool.go.
func (*Spool) Descriptor
deprecated
func (*Spool) ProtoMessage ¶
func (*Spool) ProtoMessage()
func (*Spool) ProtoReflect ¶
func (x *Spool) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.