event

package
v0.0.0-...-a67b36e Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	// Type indicated what origin the event has. see const for Type
	Type EventType
}

type EventType

type EventType int
const (
	RawClick EventType = iota
	RawURL
	StageURL
	StageClick
)

type RawClickEvent

type RawClickEvent struct {
	Event
	Timestamp  int64
	CurrentURL string
	HTMLTarget string
	// ElapsedTime stands for the time since the last RawClickEvent
	ElapsedTime int64
}

RawClickEvent represents any click a user performs

type RawURLEvent

type RawURLEvent struct {
	Event
	Timestamp   int64
	From        string
	To          string
	ElapsedTime int64
}

RawURLEvent represents any URL change. The event stores the url the moved from the url the user went to and the elapsed time the user spend on the "From" URL

Jump to

Keyboard shortcuts

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