Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DependencySet = wire.NewSet( wire.Struct(new(ArgumentParser), "*"), )
View Source
var ErrInvalidPeriodical = errors.New("Invalid periodical format")
Functions ¶
This section is empty.
Types ¶
type ArgumentParser ¶
func (*ArgumentParser) Parse ¶
ParseAnalyticCollectCountPeriodicalArgument parse the argument input and returns periodical and the start date of the periodical if periodical is hourly, t is the start of the hour. if periodical is daily, t is the start of the day. if periodical is monthly, t is the start of the day on the first day of the month. if periodical is weekly, t is the start of the day on the monday of the week. Supported input format: - this-hour - today - this-week - this-month - last-hour - yesterday - last-week - last-month - 2016-01-02T15 - 2016-01-02 - 2016-01 - 2016-W37
Click to show internal directories.
Click to hide internal directories.