analytics

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Emitter

type Emitter interface {
	Emit(Event)
}

func NewNoopEmitter

func NewNoopEmitter() Emitter

type Event

type Event struct {
	Time          time.Time `json:"time"`
	WID           string    `json:"wid"`
	CID           string    `json:"cid"`
	City          string    `json:"city"` // ISO 3166
	CountryCode   string    `json:"countryCode"`
	ContinentCode string    `json:"continentCode"`
	Lat           float64   `json:"lat"`
	Lng           float64   `json:"lng"`
	AccessDenied  bool      `json:"accessDenied"` // changelog protected
}

func NewAccessDeniedEvent

func NewAccessDeniedEvent(r *http.Request, cl store.Changelog) Event

func NewEvent

func NewEvent(r *http.Request, cl store.Changelog) Event

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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