Documentation
¶
Index ¶
- Constants
- type Comp
- func (c *Comp) GetDay() uint
- func (c *Comp) GetHour() uint
- func (c *Comp) GetMonth() uint
- func (c *Comp) GetProcessedDate() time.Time
- func (c *Comp) GetYear() uint
- func (c *Comp) SetDay(x uint)
- func (c *Comp) SetHour(x uint)
- func (c *Comp) SetMonth(x uint)
- func (c *Comp) SetProcessedDate(x time.Time)
- func (c *Comp) SetYear(x uint)
- type CompOption
- type Core
- type CoreOption
- type Date
- type Meta
- type MetaOption
Constants ¶
View Source
const ( DayKey = "day" MonthKey = "month" YearKey = "year" HourKey = "hour" ProcessedDateKey = "processed_date" )
View Source
const (
DateKey = "date"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Comp ¶
type Comp struct {
ProcessedDate *time.Time `json:"processed_date" validate:"nnpt,nz,utc"`
Day *uint `json:"day" validate:"nnpt,nz,dayrange"`
Month *uint `json:"month" validate:"nnpt,nz,monthrange"`
Year *uint `json:"year" validate:"nnpt,nz"`
Hour *uint `json:"hour" validate:"nnpt"`
}
func ApplyComp ¶
func ApplyComp(c *Comp, modifiers ...CompOption) Comp
func (*Comp) GetProcessedDate ¶
func (*Comp) SetProcessedDate ¶
type CompOption ¶
type CompOption = contracti.CompOption[Comp]
func WithDay ¶
func WithDay(x uint) CompOption
func WithHour ¶
func WithHour(x uint) CompOption
func WithMonth ¶
func WithMonth(x uint) CompOption
func WithProcessedDate ¶
func WithProcessedDate(x time.Time) CompOption
func WithProcessing ¶
func WithYear ¶
func WithYear(x uint) CompOption
type CoreOption ¶
type CoreOption = contracti.CoreOption[Core]
func WithDate ¶
func WithDate(x time.Time) CoreOption
type Date ¶
Date represents a date optimized for handling multiple time zones, and query parameter filtering.
type Meta ¶
type Meta struct{}
func ApplyMeta ¶
func ApplyMeta(m *Meta, modifiers ...MetaOption) Meta
type MetaOption ¶
type MetaOption = contract.MetaOption[Meta]
Click to show internal directories.
Click to hide internal directories.