structs

package
v2.1.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: Apache-2.0, Apache-2.0 Imports: 4 Imported by: 36

Documentation

Index

Constants

View Source
const (
	KEY_MAX   = 100
	VALUE_MAX = 8192

	NAME_PATTERN_BAD = "" /* 158-byte string literal not displayed */
	NAME_PATTERN_OK  = "^[a-zA-Z_$][a-zA-Z\\d_$]{0,99}$"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EventData

type EventData struct {
	Type          string                 `json:"type"`
	TrackID       int32                  `json:"_track_id"`
	Time          int64                  `json:"time"`
	DistinctId    string                 `json:"distinct_id,omitempty"`
	Properties    map[string]interface{} `json:"properties"`
	LibProperties LibProperties          `json:"lib"`
	Project       string                 `json:"project"`
	Event         string                 `json:"event"`
	OriginId      string                 `json:"original_id,omitempty"`
	TimeFree      bool                   `json:"time_free,omitempty"`
	Identities    map[string]string      `json:"identities,omitempty"`
}

func (*EventData) CheckIdentities

func (e *EventData) CheckIdentities() error

func (*EventData) NormalizeData

func (e *EventData) NormalizeData() error

type Item

type Item struct {
	Type          string                 `json:"type"`
	TrackID       int                    `json:"_track_id"`
	Time          int64                  `json:"time"`
	ItemType      string                 `json:"item_type"`
	ItemId        string                 `json:"item_id"`
	Project       string                 `json:"project"`
	Properties    map[string]interface{} `json:"properties"`
	LibProperties LibProperties          `json:"lib"`
}

func (*Item) NormalizeItem

func (item *Item) NormalizeItem() error

type LibProperties

type LibProperties struct {
	Lib        string `json:"$lib"`
	LibVersion string `json:"$lib_version"`
	LibMethod  string `json:"$lib_method"`
	AppVersion string `json:"$app_version,omitempty"`
	LibDetail  string `json:"$lib_detail"`
}

Jump to

Keyboard shortcuts

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