property

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2023 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const BaseKey = "__root__"

Variables

This section is empty.

Functions

This section is empty.

Types

type Metric

type Metric uint8
const (
	Visitors Metric = iota
	Views
	Events
	Visits
	BounceRates
	VisitDurations
)

func ParsMetric added in v0.0.11

func ParsMetric(k string) Metric

func (Metric) Label added in v0.0.11

func (m Metric) Label() string

func (Metric) MarshalJSON

func (m Metric) MarshalJSON() ([]byte, error)

func (Metric) Selected added in v0.0.11

func (m Metric) Selected() bool

func (Metric) String

func (m Metric) String() string

func (*Metric) UnmarshalJSON

func (m *Metric) UnmarshalJSON(b []byte) error

type Property

type Property uint8
const (
	Base Property = iota
	Event
	Page
	EntryPage
	ExitPage
	Referrer
	UtmMedium
	UtmSource
	UtmCampaign
	UtmContent
	UtmTerm
	UtmDevice
	UtmBrowser
	BrowserVersion
	Os
	OsVersion
	Country
	Region
	City
)

func ParseProperty

func ParseProperty(k string) Property

func (Property) MarshalJSON

func (p Property) MarshalJSON() ([]byte, error)

func (Property) String

func (p Property) String() string

func (*Property) UnmarshalJSON

func (p *Property) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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