dimensions

package
v7.0.0-rc9 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	EventMetaTypeNone = EventMetaType(iota)
	EventMetaTypeFloat
	EventMetaTypeInt
)
View Source
const (
	EventMetaFunctionNone = EventMetaFunction(iota)
	EventMetaFunctionSum
	EventMetaFunctionAvg
	EventMetaFunctionMedian
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Bounced

type Bounced struct{}

Bounced is a Dimension.

func (Bounced) Args

func (d Bounced) Args() []any

Args implements the Dimension interface.

func (Bounced) Column

func (d Bounced) Column(_ string) string

Column implements the Dimension interface.

func (Bounced) Expression

func (d Bounced) Expression() string

Expression implements the Dimension interface.

func (Bounced) ScanType

func (d Bounced) ScanType() any

ScanType implements the Metric interface.

func (Bounced) Table

func (d Bounced) Table() []string

Table implements the Dimension interface.

type Browser

type Browser struct{}

Browser is a Dimension.

func (Browser) Args

func (d Browser) Args() []any

Args implements the Dimension interface.

func (Browser) Column

func (d Browser) Column(_ string) string

Column implements the Dimension interface.

func (Browser) Expression

func (d Browser) Expression() string

Expression implements the Dimension interface.

func (Browser) ScanType

func (d Browser) ScanType() any

ScanType implements the Metric interface.

func (Browser) Table

func (d Browser) Table() []string

Table implements the Dimension interface.

type BrowserVersion

type BrowserVersion struct{}

BrowserVersion is a Dimension.

func (BrowserVersion) Args

func (d BrowserVersion) Args() []any

Args implements the Dimension interface.

func (BrowserVersion) Column

func (d BrowserVersion) Column(_ string) string

Column implements the Dimension interface.

func (BrowserVersion) Expression

func (d BrowserVersion) Expression() string

Expression implements the Dimension interface.

func (BrowserVersion) ScanType

func (d BrowserVersion) ScanType() any

ScanType implements the Metric interface.

func (BrowserVersion) Table

func (d BrowserVersion) Table() []string

Table implements the Dimension interface.

type Channel

type Channel struct{}

Channel is a Dimension.

func (Channel) Args

func (d Channel) Args() []any

Args implements the Dimension interface.

func (Channel) Column

func (d Channel) Column(_ string) string

Column implements the Dimension interface.

func (Channel) Expression

func (d Channel) Expression() string

Expression implements the Dimension interface.

func (Channel) ScanType

func (d Channel) ScanType() any

ScanType implements the Metric interface.

func (Channel) Table

func (d Channel) Table() []string

Table implements the Dimension interface.

type City

type City struct{}

City is a Dimension.

func (City) Args

func (d City) Args() []any

Args implements the Dimension interface.

func (City) Column

func (d City) Column(_ string) string

Column implements the Dimension interface.

func (City) Expression

func (d City) Expression() string

Expression implements the Dimension interface.

func (City) ScanType

func (d City) ScanType() any

ScanType implements the Metric interface.

func (City) Table

func (d City) Table() []string

Table implements the Dimension interface.

type Country

type Country struct{}

Country is a Dimension.

func (Country) Args

func (d Country) Args() []any

Args implements the Dimension interface.

func (Country) Column

func (d Country) Column(_ string) string

Column implements the Dimension interface.

func (Country) Expression

func (d Country) Expression() string

Expression implements the Dimension interface.

func (Country) ScanType

func (d Country) ScanType() any

ScanType implements the Metric interface.

func (Country) Table

func (d Country) Table() []string

Table implements the Dimension interface.

type Day

type Day struct{}

Day is a Dimension.

func (Day) Args

func (d Day) Args() []any

Args implements the Dimension interface.

func (Day) Column

func (d Day) Column(_ string) string

Column implements the Dimension interface.

func (Day) Expression

func (d Day) Expression() string

Expression implements the Dimension interface.

func (Day) ScanType

func (d Day) ScanType() any

ScanType implements the Metric interface.

func (Day) Table

func (d Day) Table() []string

Table implements the Dimension interface.

type Dimension

type Dimension interface {
	// Table returns the valid database tables for the Dimension.
	Table() []string

	// Column returns the database column name for the given table for the Dimension.
	// This also handles "joins" by potentially returning an entirely different column (like entry_path instead of path for bounces).
	Column(string) string

	// Expression returns the SQL expression for aggregation.
	// If empty, the Column name will be used instead.
	Expression() string

	// Args returns optional arguments for the Expression.
	Args() []any

	// ScanType returns a pointer to the type the value for this Dimension scans into.
	ScanType() any
}

Dimension is a field results are grouped by.

type Duration

type Duration struct{}

Duration is a Dimension.

func (Duration) Args

func (d Duration) Args() []any

Args implements the Dimension interface.

func (Duration) Column

func (d Duration) Column(_ string) string

Column implements the Dimension interface.

func (Duration) Expression

func (d Duration) Expression() string

Expression implements the Dimension interface.

func (Duration) ScanType

func (d Duration) ScanType() any

ScanType implements the Metric interface.

func (Duration) Table

func (d Duration) Table() []string

Table implements the Dimension interface.

type EntryPath

type EntryPath struct{}

EntryPath is a Dimension.

func (EntryPath) Args

func (d EntryPath) Args() []any

Args implements the Dimension interface.

func (EntryPath) Column

func (d EntryPath) Column(_ string) string

Column implements the Dimension interface.

func (EntryPath) Expression

func (d EntryPath) Expression() string

Expression implements the Dimension interface.

func (EntryPath) ScanType

func (d EntryPath) ScanType() any

ScanType implements the Metric interface.

func (EntryPath) Table

func (d EntryPath) Table() []string

Table implements the Dimension interface.

type EntryTitle

type EntryTitle struct{}

EntryTitle is a Dimension.

func (EntryTitle) Args

func (d EntryTitle) Args() []any

Args implements the Dimension interface.

func (EntryTitle) Column

func (d EntryTitle) Column(_ string) string

Column implements the Dimension interface.

func (EntryTitle) Expression

func (d EntryTitle) Expression() string

Expression implements the Dimension interface.

func (EntryTitle) ScanType

func (d EntryTitle) ScanType() any

ScanType implements the Metric interface.

func (EntryTitle) Table

func (d EntryTitle) Table() []string

Table implements the Dimension interface.

type Event

type Event struct{}

Event is a Dimension.

func (Event) Args

func (d Event) Args() []any

Args implements the Dimension interface.

func (Event) Column

func (d Event) Column(_ string) string

Column implements the Dimension interface.

func (Event) Expression

func (d Event) Expression() string

Expression implements the Dimension interface.

func (Event) ScanType

func (d Event) ScanType() any

ScanType implements the Metric interface.

func (Event) Table

func (d Event) Table() []string

Table implements the Dimension interface.

type EventMeta

type EventMeta struct {
	// Path is the JSON path to extract the value.
	Path string

	// Type is the value type for casting.
	Type EventMetaType

	// Function is the function used for calculations.
	Function EventMetaFunction
}

EventMeta is a Dimension.

func (EventMeta) Args

func (d EventMeta) Args() []any

Args implements the Dimension interface.

func (EventMeta) Column

func (d EventMeta) Column(_ string) string

Column implements the Dimension interface.

func (EventMeta) Expression

func (d EventMeta) Expression() string

Expression implements the Dimension interface.

func (EventMeta) ScanType

func (d EventMeta) ScanType() any

ScanType implements the Metric interface.

func (EventMeta) Select

func (d EventMeta) Select(path string) string

Select returns the SQL select expression applying any configured function or type cast.

func (EventMeta) Table

func (d EventMeta) Table() []string

Table implements the Dimension interface.

type EventMetaFunction

type EventMetaFunction uint8

EventMetaFunction is the function used to calculate an event meta value.

type EventMetaKey

type EventMetaKey struct{}

EventMetaKey is a Dimension. It's only really useful as a filter. The dimension will simply return the metadata column.

func (EventMetaKey) Args

func (d EventMetaKey) Args() []any

Args implements the Dimension interface.

func (EventMetaKey) Column

func (d EventMetaKey) Column(_ string) string

Column implements the Dimension interface.

func (EventMetaKey) Expression

func (d EventMetaKey) Expression() string

Expression implements the Dimension interface.

func (EventMetaKey) ScanType

func (d EventMetaKey) ScanType() any

ScanType implements the Metric interface.

func (EventMetaKey) Table

func (d EventMetaKey) Table() []string

Table implements the Dimension interface.

type EventMetaType

type EventMetaType uint8

EventMetaType is the cast type for an event meta value.

type EventMetaValue

type EventMetaValue struct {
	// Path is the JSON path to extract the value.
	Path string

	// Type is the value type for casting.
	Type EventMetaType
}

EventMetaValue is a Dimension.

func (EventMetaValue) Args

func (d EventMetaValue) Args() []any

Args implements the Dimension interface.

func (EventMetaValue) Column

func (d EventMetaValue) Column(_ string) string

Column implements the Dimension interface.

func (EventMetaValue) Expression

func (d EventMetaValue) Expression() string

Expression implements the Dimension interface.

func (EventMetaValue) ScanType

func (d EventMetaValue) ScanType() any

ScanType implements the Metric interface.

func (EventMetaValue) Select

func (d EventMetaValue) Select(path string) string

Select returns the SQL select expression applying any configured function or type cast.

func (EventMetaValue) Table

func (d EventMetaValue) Table() []string

Table implements the Dimension interface.

type ExitPath

type ExitPath struct{}

ExitPath is a Dimension.

func (ExitPath) Args

func (d ExitPath) Args() []any

Args implements the Dimension interface.

func (ExitPath) Column

func (d ExitPath) Column(_ string) string

Column implements the Dimension interface.

func (ExitPath) Expression

func (d ExitPath) Expression() string

Expression implements the Dimension interface.

func (ExitPath) ScanType

func (d ExitPath) ScanType() any

ScanType implements the Metric interface.

func (ExitPath) Table

func (d ExitPath) Table() []string

Table implements the Dimension interface.

type ExitTitle

type ExitTitle struct{}

ExitTitle is a Dimension.

func (ExitTitle) Args

func (d ExitTitle) Args() []any

Args implements the Dimension interface.

func (ExitTitle) Column

func (d ExitTitle) Column(_ string) string

Column implements the Dimension interface.

func (ExitTitle) Expression

func (d ExitTitle) Expression() string

Expression implements the Dimension interface.

func (ExitTitle) ScanType

func (d ExitTitle) ScanType() any

ScanType implements the Metric interface.

func (ExitTitle) Table

func (d ExitTitle) Table() []string

Table implements the Dimension interface.

type Hostname

type Hostname struct{}

Hostname is a Dimension.

func (Hostname) Args

func (d Hostname) Args() []any

Args implements the Dimension interface.

func (Hostname) Column

func (d Hostname) Column(_ string) string

Column implements the Dimension interface.

func (Hostname) Expression

func (d Hostname) Expression() string

Expression implements the Dimension interface.

func (Hostname) ScanType

func (d Hostname) ScanType() any

ScanType implements the Metric interface.

func (Hostname) Table

func (d Hostname) Table() []string

Table implements the Dimension interface.

type Hour

type Hour struct{}

Hour is a Dimension.

func (Hour) Args

func (d Hour) Args() []any

Args implements the Dimension interface.

func (Hour) Column

func (d Hour) Column(_ string) string

Column implements the Dimension interface.

func (Hour) Expression

func (d Hour) Expression() string

Expression implements the Dimension interface.

func (Hour) ScanType

func (d Hour) ScanType() any

ScanType implements the Metric interface.

func (Hour) Table

func (d Hour) Table() []string

Table implements the Dimension interface.

type Language

type Language struct{}

Language is a Dimension.

func (Language) Args

func (d Language) Args() []any

Args implements the Dimension interface.

func (Language) Column

func (d Language) Column(_ string) string

Column implements the Dimension interface.

func (Language) Expression

func (d Language) Expression() string

Expression implements the Dimension interface.

func (Language) ScanType

func (d Language) ScanType() any

ScanType implements the Metric interface.

func (Language) Table

func (d Language) Table() []string

Table implements the Dimension interface.

type Month

type Month struct{}

Month is a Dimension.

func (Month) Args

func (d Month) Args() []any

Args implements the Dimension interface.

func (Month) Column

func (d Month) Column(_ string) string

Column implements the Dimension interface.

func (Month) Expression

func (d Month) Expression() string

Expression implements the Dimension interface.

func (Month) ScanType

func (d Month) ScanType() any

ScanType implements the Metric interface.

func (Month) Table

func (d Month) Table() []string

Table implements the Dimension interface.

type OS

type OS struct{}

OS is a Dimension.

func (OS) Args

func (d OS) Args() []any

Args implements the Dimension interface.

func (OS) Column

func (d OS) Column(_ string) string

Column implements the Dimension interface.

func (OS) Expression

func (d OS) Expression() string

Expression implements the Dimension interface.

func (OS) ScanType

func (d OS) ScanType() any

ScanType implements the Metric interface.

func (OS) Table

func (d OS) Table() []string

Table implements the Dimension interface.

type OSVersion

type OSVersion struct{}

OSVersion is a Dimension.

func (OSVersion) Args

func (d OSVersion) Args() []any

Args implements the Dimension interface.

func (OSVersion) Column

func (d OSVersion) Column(_ string) string

Column implements the Dimension interface.

func (OSVersion) Expression

func (d OSVersion) Expression() string

Expression implements the Dimension interface.

func (OSVersion) ScanType

func (d OSVersion) ScanType() any

ScanType implements the Metric interface.

func (OSVersion) Table

func (d OSVersion) Table() []string

Table implements the Dimension interface.

type PageViews

type PageViews struct{}

PageViews is a Dimension.

func (PageViews) Args

func (d PageViews) Args() []any

Args implements the Dimension interface.

func (PageViews) Column

func (d PageViews) Column(_ string) string

Column implements the Dimension interface.

func (PageViews) Expression

func (d PageViews) Expression() string

Expression implements the Dimension interface.

func (PageViews) ScanType

func (d PageViews) ScanType() any

ScanType implements the Metric interface.

func (PageViews) Table

func (d PageViews) Table() []string

Table implements the Dimension interface.

type Path

type Path struct{}

Path is a Dimension.

func (Path) Args

func (d Path) Args() []any

Args implements the Dimension interface.

func (Path) Column

func (d Path) Column(table string) string

Column implements the Dimension interface.

func (Path) Expression

func (d Path) Expression() string

Expression implements the Dimension interface.

func (Path) ScanType

func (d Path) ScanType() any

ScanType implements the Metric interface.

func (Path) Table

func (d Path) Table() []string

Table implements the Dimension interface.

type Platform

type Platform struct{}

Platform is a Dimension.

func (Platform) Args

func (d Platform) Args() []any

Args implements the Dimension interface.

func (Platform) Column

func (d Platform) Column(_ string) string

Column implements the Dimension interface.

func (Platform) Expression

func (d Platform) Expression() string

Expression implements the Dimension interface.

func (Platform) ScanType

func (d Platform) ScanType() any

ScanType implements the Metric interface.

func (Platform) Table

func (d Platform) Table() []string

Table implements the Dimension interface.

type Referrer

type Referrer struct{}

Referrer is a Dimension.

func (Referrer) Args

func (d Referrer) Args() []any

Args implements the Dimension interface.

func (Referrer) Column

func (d Referrer) Column(_ string) string

Column implements the Dimension interface.

func (Referrer) Expression

func (d Referrer) Expression() string

Expression implements the Dimension interface.

func (Referrer) ScanType

func (d Referrer) ScanType() any

ScanType implements the Metric interface.

func (Referrer) Table

func (d Referrer) Table() []string

Table implements the Dimension interface.

type ReferrerIcon

type ReferrerIcon struct{}

ReferrerIcon is a Dimension.

func (ReferrerIcon) Args

func (d ReferrerIcon) Args() []any

Args implements the Dimension interface.

func (ReferrerIcon) Column

func (d ReferrerIcon) Column(_ string) string

Column implements the Dimension interface.

func (ReferrerIcon) Expression

func (d ReferrerIcon) Expression() string

Expression implements the Dimension interface.

func (ReferrerIcon) ScanType

func (d ReferrerIcon) ScanType() any

ScanType implements the Metric interface.

func (ReferrerIcon) Table

func (d ReferrerIcon) Table() []string

Table implements the Dimension interface.

type ReferrerName

type ReferrerName struct{}

ReferrerName is a Dimension.

func (ReferrerName) Args

func (d ReferrerName) Args() []any

Args implements the Dimension interface.

func (ReferrerName) Column

func (d ReferrerName) Column(_ string) string

Column implements the Dimension interface.

func (ReferrerName) Expression

func (d ReferrerName) Expression() string

Expression implements the Dimension interface.

func (ReferrerName) ScanType

func (d ReferrerName) ScanType() any

ScanType implements the Metric interface.

func (ReferrerName) Table

func (d ReferrerName) Table() []string

Table implements the Dimension interface.

type Region

type Region struct{}

Region is a Dimension.

func (Region) Args

func (d Region) Args() []any

Args implements the Dimension interface.

func (Region) Column

func (d Region) Column(_ string) string

Column implements the Dimension interface.

func (Region) Expression

func (d Region) Expression() string

Expression implements the Dimension interface.

func (Region) ScanType

func (d Region) ScanType() any

ScanType implements the Metric interface.

func (Region) Table

func (d Region) Table() []string

Table implements the Dimension interface.

type ScreenClass

type ScreenClass struct{}

ScreenClass is a Dimension.

func (ScreenClass) Args

func (d ScreenClass) Args() []any

Args implements the Dimension interface.

func (ScreenClass) Column

func (d ScreenClass) Column(_ string) string

Column implements the Dimension interface.

func (ScreenClass) Expression

func (d ScreenClass) Expression() string

Expression implements the Dimension interface.

func (ScreenClass) ScanType

func (d ScreenClass) ScanType() any

ScanType implements the Metric interface.

func (ScreenClass) Table

func (d ScreenClass) Table() []string

Table implements the Dimension interface.

type SessionID

type SessionID struct{}

SessionID is a Dimension.

func (SessionID) Args

func (d SessionID) Args() []any

Args implements the Dimension interface.

func (SessionID) Column

func (d SessionID) Column(_ string) string

Column implements the Dimension interface.

func (SessionID) Expression

func (d SessionID) Expression() string

Expression implements the Dimension interface.

func (SessionID) ScanType

func (d SessionID) ScanType() any

ScanType implements the Metric interface.

func (SessionID) Table

func (d SessionID) Table() []string

Table implements the Dimension interface.

type SiteID

type SiteID struct{}

SiteID is a Dimension.

func (SiteID) Args

func (d SiteID) Args() []any

Args implements the Dimension interface.

func (SiteID) Column

func (d SiteID) Column(_ string) string

Column implements the Dimension interface.

func (SiteID) Expression

func (d SiteID) Expression() string

Expression implements the Dimension interface.

func (SiteID) ScanType

func (d SiteID) ScanType() any

ScanType implements the Metric interface.

func (SiteID) Table

func (d SiteID) Table() []string

Table implements the Dimension interface.

type Start

type Start struct{}

Start is a Dimension.

func (Start) Args

func (d Start) Args() []any

Args implements the Dimension interface.

func (Start) Column

func (d Start) Column(_ string) string

Column implements the Dimension interface.

func (Start) Expression

func (d Start) Expression() string

Expression implements the Dimension interface.

func (Start) ScanType

func (d Start) ScanType() any

ScanType implements the Metric interface.

func (Start) Table

func (d Start) Table() []string

Table implements the Dimension interface.

type Step

type Step struct {
	Number int
}

Step is a Dimension.

func (Step) Args

func (d Step) Args() []any

Args implements the Dimension interface.

func (Step) Column

func (d Step) Column(_ string) string

Column implements the Dimension interface.

func (Step) Expression

func (d Step) Expression() string

Expression implements the Dimension interface.

func (Step) ScanType

func (d Step) ScanType() any

ScanType implements the Metric interface.

func (Step) Table

func (d Step) Table() []string

Table implements the Dimension interface.

type TagKey

type TagKey struct{}

TagKey is a Dimension.

func (TagKey) Args

func (d TagKey) Args() []any

Args implements the Dimension interface.

func (TagKey) Column

func (d TagKey) Column(_ string) string

Column implements the Dimension interface.

func (TagKey) Expression

func (d TagKey) Expression() string

Expression implements the Dimension interface.

func (TagKey) ScanType

func (d TagKey) ScanType() any

ScanType implements the Metric interface.

func (TagKey) Table

func (d TagKey) Table() []string

Table implements the Dimension interface.

type TagValue

type TagValue struct {
	// Key is the map key to extract the value.
	Key string
}

TagValue is a Dimension.

func (TagValue) Args

func (d TagValue) Args() []any

Args implements the Dimension interface.

func (TagValue) Column

func (d TagValue) Column(_ string) string

Column implements the Dimension interface.

func (TagValue) Expression

func (d TagValue) Expression() string

Expression implements the Dimension interface.

func (TagValue) ScanType

func (d TagValue) ScanType() any

ScanType implements the Metric interface.

func (TagValue) Table

func (d TagValue) Table() []string

Table implements the Dimension interface.

type Tags

type Tags struct{}

Tags is a Dimension.

func (Tags) Args

func (d Tags) Args() []any

Args implements the Dimension interface.

func (Tags) Column

func (d Tags) Column(_ string) string

Column implements the Dimension interface.

func (Tags) Expression

func (d Tags) Expression() string

Expression implements the Dimension interface.

func (Tags) ScanType

func (d Tags) ScanType() any

ScanType implements the Metric interface.

func (Tags) Table

func (d Tags) Table() []string

Table implements the Dimension interface.

type Time

type Time struct{}

Time is a Dimension.

func (Time) Args

func (d Time) Args() []any

Args implements the Dimension interface.

func (Time) Column

func (d Time) Column(_ string) string

Column implements the Dimension interface.

func (Time) Expression

func (d Time) Expression() string

Expression implements the Dimension interface.

func (Time) ScanType

func (d Time) ScanType() any

ScanType implements the Metric interface.

func (Time) Table

func (d Time) Table() []string

Table implements the Dimension interface.

type Title

type Title struct{}

Title is a Dimension.

func (Title) Args

func (d Title) Args() []any

Args implements the Dimension interface.

func (Title) Column

func (d Title) Column(_ string) string

Column implements the Dimension interface.

func (Title) Expression

func (d Title) Expression() string

Expression implements the Dimension interface.

func (Title) ScanType

func (d Title) ScanType() any

ScanType implements the Metric interface.

func (Title) Table

func (d Title) Table() []string

Table implements the Dimension interface.

type UTMCampaign

type UTMCampaign struct{}

UTMCampaign is a Dimension.

func (UTMCampaign) Args

func (d UTMCampaign) Args() []any

Args implements the Dimension interface.

func (UTMCampaign) Column

func (d UTMCampaign) Column(_ string) string

Column implements the Dimension interface.

func (UTMCampaign) Expression

func (d UTMCampaign) Expression() string

Expression implements the Dimension interface.

func (UTMCampaign) ScanType

func (d UTMCampaign) ScanType() any

ScanType implements the Metric interface.

func (UTMCampaign) Table

func (d UTMCampaign) Table() []string

Table implements the Dimension interface.

type UTMContent

type UTMContent struct{}

UTMContent is a Dimension.

func (UTMContent) Args

func (d UTMContent) Args() []any

Args implements the Dimension interface.

func (UTMContent) Column

func (d UTMContent) Column(_ string) string

Column implements the Dimension interface.

func (UTMContent) Expression

func (d UTMContent) Expression() string

Expression implements the Dimension interface.

func (UTMContent) ScanType

func (d UTMContent) ScanType() any

ScanType implements the Metric interface.

func (UTMContent) Table

func (d UTMContent) Table() []string

Table implements the Dimension interface.

type UTMMedium

type UTMMedium struct{}

UTMMedium is a Dimension.

func (UTMMedium) Args

func (d UTMMedium) Args() []any

Args implements the Dimension interface.

func (UTMMedium) Column

func (d UTMMedium) Column(_ string) string

Column implements the Dimension interface.

func (UTMMedium) Expression

func (d UTMMedium) Expression() string

Expression implements the Dimension interface.

func (UTMMedium) ScanType

func (d UTMMedium) ScanType() any

ScanType implements the Metric interface.

func (UTMMedium) Table

func (d UTMMedium) Table() []string

Table implements the Dimension interface.

type UTMSource

type UTMSource struct{}

UTMSource is a Dimension.

func (UTMSource) Args

func (d UTMSource) Args() []any

Args implements the Dimension interface.

func (UTMSource) Column

func (d UTMSource) Column(_ string) string

Column implements the Dimension interface.

func (UTMSource) Expression

func (d UTMSource) Expression() string

Expression implements the Dimension interface.

func (UTMSource) ScanType

func (d UTMSource) ScanType() any

ScanType implements the Metric interface.

func (UTMSource) Table

func (d UTMSource) Table() []string

Table implements the Dimension interface.

type UTMTerm

type UTMTerm struct{}

UTMTerm is a Dimension.

func (UTMTerm) Args

func (d UTMTerm) Args() []any

Args implements the Dimension interface.

func (UTMTerm) Column

func (d UTMTerm) Column(_ string) string

Column implements the Dimension interface.

func (UTMTerm) Expression

func (d UTMTerm) Expression() string

Expression implements the Dimension interface.

func (UTMTerm) ScanType

func (d UTMTerm) ScanType() any

ScanType implements the Metric interface.

func (UTMTerm) Table

func (d UTMTerm) Table() []string

Table implements the Dimension interface.

type VisitorID

type VisitorID struct{}

VisitorID is a Dimension.

func (VisitorID) Args

func (d VisitorID) Args() []any

Args implements the Dimension interface.

func (VisitorID) Column

func (d VisitorID) Column(_ string) string

Column implements the Dimension interface.

func (VisitorID) Expression

func (d VisitorID) Expression() string

Expression implements the Dimension interface.

func (VisitorID) ScanType

func (d VisitorID) ScanType() any

ScanType implements the Metric interface.

func (VisitorID) Table

func (d VisitorID) Table() []string

Table implements the Dimension interface.

type Week

type Week struct{}

Week is a Dimension.

func (Week) Args

func (d Week) Args() []any

Args implements the Dimension interface.

func (Week) Column

func (d Week) Column(_ string) string

Column implements the Dimension interface.

func (Week) Expression

func (d Week) Expression() string

Expression implements the Dimension interface.

func (Week) ScanType

func (d Week) ScanType() any

ScanType implements the Metric interface.

func (Week) Table

func (d Week) Table() []string

Table implements the Dimension interface.

type Year

type Year struct{}

Year is a Dimension.

func (Year) Args

func (d Year) Args() []any

Args implements the Dimension interface.

func (Year) Column

func (d Year) Column(_ string) string

Column implements the Dimension interface.

func (Year) Expression

func (d Year) Expression() string

Expression implements the Dimension interface.

func (Year) ScanType

func (d Year) ScanType() any

ScanType implements the Metric interface.

func (Year) Table

func (d Year) Table() []string

Table implements the Dimension interface.

Jump to

Keyboard shortcuts

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