common

package
v0.0.0-...-fad68f1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DateComparison

type DateComparison struct {
	Lt  time.Time `json:"lt,omitempty"`
	Gt  time.Time `json:"gt,omitempty"`
	Lte time.Time `json:"lte,omitempty"`
	Gte time.Time `json:"gte,omitempty"`
}

func NewDateComparison

func NewDateComparison() *DateComparison

create new date comparison

func (*DateComparison) SetGt

func (d *DateComparison) SetGt(gt time.Time) *DateComparison

filter by dates greater than this date

func (*DateComparison) SetGte

func (d *DateComparison) SetGte(gte time.Time) *DateComparison

filter by dates greater than or equal to this date

func (*DateComparison) SetLt

func (d *DateComparison) SetLt(lt time.Time) *DateComparison

filter by dates less than this date

func (*DateComparison) SetLte

func (d *DateComparison) SetLte(lte time.Time) *DateComparison

filter by dates less than or equal to this date

Jump to

Keyboard shortcuts

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