date

package
v0.0.0-...-78e7222 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2019 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

Variables

This section is empty.

Functions

This section is empty.

Types

type Criterion

type Criterion struct {
	Field     string     `json:"field"`
	StartDate RangeValue `json:"startDate"`
	EndDate   RangeValue `json:"endDate"`
}

func (Criterion) IsValid

func (c Criterion) IsValid() error

func (Criterion) ToFilter

func (c Criterion) ToFilter() map[string]interface{}

func (Criterion) Type

func (c Criterion) Type() criterion2.Type

type RangeValue

type RangeValue struct {
	Date      int64 `json:"date"`
	Inclusive bool  `json:"inclusive"`
	Ignore    bool  `json:"ignore"`
}

Jump to

Keyboard shortcuts

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