Documentation ¶
Index ¶
- func Fingerprint(remoteIP, userAgent, domain, host string) (sum uint64)
- func NewRecordBuilder(mem memory.Allocator, as *arrow.Schema) (*array.RecordBuilder, func(reflect.Value))
- func NewTaker(mem memory.Allocator, as *arrow.Schema) (*array.RecordBuilder, func(arrow.Record, []int, []uint32))
- func Schema[T any]() *arrow.Schema
- type Arrow
- type Event
- type FullIndex
- type Index
- type Merger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Fingerprint ¶
func NewRecordBuilder ¶
Types ¶
type Event ¶
type Event struct { Timestamp int64 ID int64 // When a new session is established for the first time we set Bounce to 1, if // a user visits another page within the same session for the first time Bounce // is set to -1, any subsequent visits within the session sets Bounce to 0. // // This allows effective calculation of bounce rate by just summing the Bounce // column with faster math.Int64.Sum. // // NOTE: Bounce is calculated per session. We simply want to know if a user // stayed and browsed the website. Bounce int64 Session int64 Duration float64 Browser string BrowserVersion string City string Country string Domain string EntryPage string ExitPage string Host string Event string Os string OsVersion string Path string Referrer string ReferrerSource string Region string Screen string UtmCampaign string UtmContent string UtmMedium string UtmSource string UtmTerm string }
type FullIndex ¶
type FullIndex map[string]*index.FullColumn
type Index ¶
type Index struct { Browser *index.ColumnImpl BrowserVersion *index.ColumnImpl City *index.ColumnImpl Country *index.ColumnImpl Domain *index.ColumnImpl EntryPage *index.ColumnImpl ExitPage *index.ColumnImpl Host *index.ColumnImpl Event *index.ColumnImpl Os *index.ColumnImpl OsVersion *index.ColumnImpl Path *index.ColumnImpl Referrer *index.ColumnImpl ReferrerSource *index.ColumnImpl Region *index.ColumnImpl Screen *index.ColumnImpl UtmCampaign *index.ColumnImpl UtmContent *index.ColumnImpl UtmMedium *index.ColumnImpl UtmSource *index.ColumnImpl UtmTerm *index.ColumnImpl // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.