spoolpb

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: BSD-3-Clause Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use Event.ProtoReflect.Descriptor instead.

func (*Event) GetKind

func (x *Event) GetKind() string

func (*Event) GetName

func (x *Event) GetName() string

func (*Event) GetProps

func (x *Event) GetProps() *structpb.Struct

func (*Event) GetSessionId

func (x *Event) GetSessionId() string

func (*Event) GetTimestamp

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

func (*Event) GetTraits

func (x *Event) GetTraits() *structpb.Struct

func (*Event) GetUserId

func (x *Event) GetUserId() 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 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) Descriptor() ([]byte, []int)

Deprecated: Use Spool.ProtoReflect.Descriptor instead.

func (*Spool) GetEvents

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

func (*Spool) ProtoMessage

func (*Spool) ProtoMessage()

func (*Spool) ProtoReflect

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

func (*Spool) Reset

func (x *Spool) Reset()

func (*Spool) String

func (x *Spool) String() string

Jump to

Keyboard shortcuts

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