models

package
v1.11.3 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Code generated by ingernal/gen/main.go. DO NOT EDIT.

Index

Constants

View Source
const (
	MutexFieldSize       = Field_session + 1
	TranslatedFieldsSize = Field_subdivision2_code + 1
	SearchFieldSize      = Field_city + 1
	BSIFieldsSize        = Field_duration - Field_timestamp + 1
	AllFields            = Field_duration + 1
)

Variables

View Source
var (
	Field_name = map[Field]string{
		Field_unknown:           "unknown",
		Field_domain:            "domain",
		Field_browser:           "browser",
		Field_browser_version:   "browser_version",
		Field_country:           "country",
		Field_device:            "device",
		Field_entry_page:        "entry_page",
		Field_event:             "event",
		Field_exit_page:         "exit_page",
		Field_host:              "host",
		Field_os:                "os",
		Field_os_version:        "os_version",
		Field_page:              "page",
		Field_referrer:          "referrer",
		Field_source:            "source",
		Field_utm_campaign:      "utm_campaign",
		Field_utm_content:       "utm_content",
		Field_utm_medium:        "utm_medium",
		Field_utm_source:        "utm_source",
		Field_utm_term:          "utm_term",
		Field_subdivision1_code: "subdivision1_code",
		Field_subdivision2_code: "subdivision2_code",
		Field_city:              "city",
		Field_view:              "view",
		Field_session:           "session",
		Field_timestamp:         "timestamp",
		Field_id:                "id",
		Field_bounce:            "bounce",
		Field_duration:          "duration",
	}
	Field_value = map[string]Field{
		"unknown":           Field_unknown,
		"domain":            Field_domain,
		"browser":           Field_browser,
		"browser_version":   Field_browser_version,
		"country":           Field_country,
		"device":            Field_device,
		"entry_page":        Field_entry_page,
		"event":             Field_event,
		"exit_page":         Field_exit_page,
		"host":              Field_host,
		"os":                Field_os,
		"os_version":        Field_os_version,
		"page":              Field_page,
		"referrer":          Field_referrer,
		"source":            Field_source,
		"utm_campaign":      Field_utm_campaign,
		"utm_content":       Field_utm_content,
		"utm_medium":        Field_utm_medium,
		"utm_source":        Field_utm_source,
		"utm_term":          Field_utm_term,
		"subdivision1_code": Field_subdivision1_code,
		"subdivision2_code": Field_subdivision2_code,
		"city":              Field_city,
		"view":              Field_view,
		"session":           Field_session,
		"timestamp":         Field_timestamp,
		"id":                Field_id,
		"bounce":            Field_bounce,
		"duration":          Field_duration,
	}
)

Functions

This section is empty.

Types

type Agent added in v1.5.2

type Agent struct {
	Device, Os, OsVersion, Browser, BrowserVersion []byte
}

type BitSet added in v1.7.0

type BitSet uint64

func DataForMetrics added in v1.6.0

func DataForMetrics(m ...string) BitSet

func (BitSet) All added in v1.7.0

func (v BitSet) All() (o []Field)

func (BitSet) Len added in v1.7.0

func (v BitSet) Len() int

func (BitSet) Or added in v1.7.0

func (v BitSet) Or(other BitSet) BitSet

func (*BitSet) Set added in v1.7.0

func (v *BitSet) Set(i Field)

func (BitSet) Test added in v1.7.0

func (v BitSet) Test(i Field) bool

func (*BitSet) Unset added in v1.7.0

func (v *BitSet) Unset(i int)

type Cached added in v1.5.2

type Cached struct {
	Start     int64
	EntryPage []byte
	Host      []byte
	ExitPage  []byte
	Timestamp int64
	Bounce    int8
}

type Field added in v1.4.1

type Field byte
const (
	Field_unknown           Field = 0
	Field_domain            Field = 1
	Field_browser           Field = 2
	Field_browser_version   Field = 3
	Field_country           Field = 4
	Field_device            Field = 5
	Field_entry_page        Field = 6
	Field_event             Field = 7
	Field_exit_page         Field = 8
	Field_host              Field = 9
	Field_os                Field = 10
	Field_os_version        Field = 11
	Field_page              Field = 12
	Field_referrer          Field = 13
	Field_source            Field = 14
	Field_utm_campaign      Field = 15
	Field_utm_content       Field = 16
	Field_utm_medium        Field = 17
	Field_utm_source        Field = 18
	Field_utm_term          Field = 19
	Field_subdivision1_code Field = 20
	Field_subdivision2_code Field = 21
	Field_city              Field = 22
	Field_view              Field = 23
	Field_session           Field = 24
	Field_timestamp         Field = 25
	Field_id                Field = 26
	Field_bounce            Field = 27
	Field_duration          Field = 28
)

func BSI added in v1.5.1

func BSI(i int) Field

func Mutex added in v1.5.1

func Mutex(i int) Field

func (Field) BSI added in v1.5.1

func (f Field) BSI() byte

func (Field) Mutex added in v1.5.1

func (f Field) Mutex() byte

func (Field) String added in v1.4.1

func (f Field) String() string

type Model added in v1.3.0

type Model struct {
	ExitPage         []byte
	UtmTerm          []byte
	EntryPage        []byte
	Subdivision1Code []byte
	Event            []byte
	UtmSource        []byte
	UtmMedium        []byte
	Browser          []byte
	BrowserVersion   []byte
	Country          []byte
	Device           []byte
	Domain           []byte
	Subdivision2Code []byte
	UtmContent       []byte
	Page             []byte
	Host             []byte
	Os               []byte
	OsVersion        []byte
	UtmCampaign      []byte
	Referrer         []byte
	Source           []byte
	Timestamp        int64
	Duration         int64
	Id               uint64
	City             uint32
	Bounce           int8
	View             bool
	Session          bool
}

func (*Model) Cached added in v1.5.2

func (m *Model) Cached() *Cached

func (*Model) Update added in v1.5.2

func (m *Model) Update(session *Cached) *Cached

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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