stats

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Tables = make(map[string]Table)

	ValidFuncs = map[string]struct{}{
		"count": {},
		"avg":   {},
		"max":   {},
		"min":   {},
		"sum":   {},
	}
)

Functions

func Init

func Init(models ...any) error

func InitModel

func InitModel(model any) error

Types

type Column

type Column struct {
	Functions  map[string]struct{}
	Filterable bool
}

type Table

type Table struct {
	Columns map[string]Column
}

Jump to

Keyboard shortcuts

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