Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type InputDuration ¶
type InputDuration struct { // Number of units of time Count int `json:"count"` // Unit of time (hour/day/week/month/year) Unit string `json:"unit"` // From date From time.Time `json:"from"` // To date To time.Time `json:"to"` }
A time period (e.g. last 24 hours) or explicit date duration.
func (*InputDuration) GetCount ¶
func (v *InputDuration) GetCount() int
GetCount returns InputDuration.Count, and is useful for accessing the field via an interface.
func (*InputDuration) GetFrom ¶
func (v *InputDuration) GetFrom() time.Time
GetFrom returns InputDuration.From, and is useful for accessing the field via an interface.
func (*InputDuration) GetTo ¶
func (v *InputDuration) GetTo() time.Time
GetTo returns InputDuration.To, and is useful for accessing the field via an interface.
func (*InputDuration) GetUnit ¶
func (v *InputDuration) GetUnit() string
GetUnit returns InputDuration.Unit, and is useful for accessing the field via an interface.
Click to show internal directories.
Click to hide internal directories.