Documentation ¶
Index ¶
- Constants
- func Collect(ctx context.Context, e *entry.Entry)
- func DebugKey(id []byte) string
- func DebugPrefix(id []byte) string
- func DropSite(ctx context.Context, uid, sid uint64)
- func GetMike(ctx context.Context) *badger.DB
- func GetUnique(ctx context.Context) *badger.DB
- func Open(ctx context.Context, o *config.Options) (context.Context, io.Closer, error)
- func Query(ctx context.Context, uid, sid uint64, r query.Query) (result query.QueryResult)
- func Save(ctx context.Context, b *Buffer)
- func SetMap(ctx context.Context, m *Map) context.Context
- func Sum(ls []uint32) (o uint32)
- func Sum16(ls []uint16) (o uint32)
- func Time(id []byte) time.Time
- type Buffer
- type Key
- type Map
- type Metric
- type MultiEntry
- type Plot
- type Property
- type StatList
- type StatValue
- type Stats
Constants ¶
View Source
const ( Base = property.Base Event = property.Event Page = property.Page EntryPage = property.EntryPage ExitPage = property.ExitPage Referrer = property.Referrer UtmMedium = property.UtmMedium UtmSource = property.UtmSource UtmCampaign = property.UtmCampaign UtmContent = property.UtmContent UtmTerm = property.UtmTerm UtmDevice = property.UtmDevice UtmBrowser = property.UtmBrowser BrowserVersion = property.BrowserVersion Os = property.Os OsVersion = property.OsVersion Country = property.Country Region = property.Region City = property.City )
View Source
const ( Visitors = property.Visitors Views = property.Views Events = property.Events Visits = property.Visits BounceRates = property.BounceRates VisitDurations = property.VisitDurations )
View Source
const BaseKey = property.BaseKey
Variables ¶
This section is empty.
Functions ¶
func DebugPrefix ¶ added in v0.0.10
Types ¶
type Buffer ¶
type Buffer struct {
// contains filtered or unexported fields
}
type Map ¶
type Map struct {
// contains filtered or unexported fields
}
Maps user ID to *Buffer.
type MultiEntry ¶
type MultiEntry struct { UtmMedium []string Referrer []string Domain []string ExitPage []string EntryPage []string Hostname []string Pathname []string UtmSource []string ReferrerSource []string CountryCode []string Region []string Subdivision2Code []string TransferredFrom []string UtmCampaign []string OperatingSystem []string Browser []string UtmTerm []string Name []string ScreenSize []string BrowserVersion []string OperatingSystemVersion []string UtmContent []string UserId []uint64 Timestamp []int64 Duration []time.Duration Start []int64 City []string PageViews []uint16 Events []uint16 IsBounce []bool // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.