interval

package
v0.0.0-...-d39f515 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interval

type Interval struct {
	Factor int64        `json:"factor"`
	Unit   IntervalUnit `json:"unit"`
}

func GetVisitorPageViewInterval

func GetVisitorPageViewInterval(filters *filter.Filters) *Interval

func (*Interval) ToDuration

func (i *Interval) ToDuration() time.Duration

func (*Interval) ToQuery

func (i *Interval) ToQuery() string

type IntervalUnit

type IntervalUnit string
const (
	UnitDay    IntervalUnit = "day"
	UnitHour   IntervalUnit = "hour"
	UnitMinute IntervalUnit = "minute"
)

Jump to

Keyboard shortcuts

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