Versions in this module Expand all Collapse all v0 v0.0.1 Dec 6, 2023 Changes in this version + const Name + const Type + var ErrHTTPVerbNotImplemented = errors.New("http verb not implemented") + func Switcher(ctx context.Context, logger sypl.ISypl, httpVerb string, url string, ...) (*http.Response, error) + type Func func(IMetrics) + type ILooper interface + Start func() + StartAsync func() + Stop func() + func New(name string, interval time.Duration, enableMetrics bool, loggingLevel string, ...) (ILooper, error) + func NewRequester(httpVerb string, url string, interval time.Duration, enableMetrics bool, ...) (ILooper, error) + type IMetrics interface + GetLogger func() sypl.ISypl + IncrementFailedCounter func() + IncrementSuccessCounter func() + IncrementTotalCounter func() + type Looper struct + Func Func + Interval time.Duration + Logger sypl.ISypl + Name string + func (l *Looper) GetLogger() sypl.ISypl + func (l *Looper) GetMetrics() any + func (l *Looper) IncrementFailedCounter() + func (l *Looper) IncrementSuccessCounter() + func (l *Looper) IncrementTotalCounter() + func (l *Looper) Start() + func (l *Looper) StartAsync() + func (l *Looper) Stop() + type Metrics struct + FailedCounter *expvar.Int + SuccessCounter *expvar.Int + TotalCounter *expvar.Int + type Requester struct