timefilters

package
v0.0.0-...-7a6a509 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Operators = map[string]string{
		"[lt]":  string(qmhelper.LT),
		"[lte]": string(qmhelper.LTE),
		"[gt]":  string(qmhelper.GT),
		"[gte]": string(qmhelper.GTE),
		"":      string(qmhelper.EQ),
	}
)

Functions

func Filters

func Filters(createdAts, updatedAts []TimeFilter, createdAtColumn string, updatedAtColumn string) []qm.QueryMod

func ParseTimeFilters

func ParseTimeFilters(c echo.Context) ([]TimeFilter, []TimeFilter, error)

Types

type TimeFilter

type TimeFilter struct {
	Timestamp time.Time
	Operator  string
}

Jump to

Keyboard shortcuts

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