Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMetrics ¶
func GetMetrics() []prometheus.Collector
Types ¶
type Job ¶
type Job struct {
// contains filtered or unexported fields
}
Job reporesents Cron Job which could be runned in some interval or on daily basis. It's a thin wrapper around stdlib's time.Ticker.
func NewDailyJob ¶
NewDailyJob constructs job which will be triggered on the daily basis at the given point of time. NOTE: it expects time in UTC timezone. It's -3 hours compared to Kyiv Time: 12:00 UTC = 15:00 by Kyiv
type MetricsDecorator ¶
type MetricsDecorator struct {
// contains filtered or unexported fields
}
func NewWithMetrics ¶
func NewWithMetrics(doer Doer, event string) *MetricsDecorator
func (*MetricsDecorator) Do ¶
func (md *MetricsDecorator) Do() error
Click to show internal directories.
Click to hide internal directories.