Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IgnoreError ¶
func IgnoreError(err error)
accepts error and logs error message. Used to prevent warnings when errors not caught.
func IgnoreErrorMultiReturn ¶
func IgnoreErrorMultiReturn(i interface{}, err error)
func RemoveTicker ¶ added in v0.5.1
func RemoveTicker(name string)
Types ¶
type FunctionRetry ¶ added in v0.5.1
ResettableFunctionTicker will reset the user state as soon as tick is delivered.
func NewRetryTicker ¶ added in v0.5.1
func NewRetryTicker(ctx context.Context, name string, option ...FunctionRetryOption) *FunctionRetry
func (*FunctionRetry) Do ¶ added in v0.5.1
func (t *FunctionRetry) Do(f func(), cancel_f func(), deadline_f func())
type FunctionRetryOption ¶ added in v0.5.1
type FunctionRetryOption func(*FunctionRetry)
func WithRetryDuration ¶ added in v0.5.1
func WithRetryDuration(d time.Duration) FunctionRetryOption
type ResettableFunctionTicker ¶ added in v0.5.1
type ResettableFunctionTicker struct { Ticker *time.Ticker ResetChan chan struct{} // channel used to reset the ticker Started bool // contains filtered or unexported fields }
ResettableFunctionTicker will reset the user state as soon as tick is delivered.
func GetTicker ¶ added in v0.5.1
func GetTicker(name string, option ...ResettableFunctionTickerOption) *ResettableFunctionTicker
func NewResettableFunctionTicker ¶ added in v0.5.1
func NewResettableFunctionTicker(name string, option ...ResettableFunctionTickerOption) *ResettableFunctionTicker
func (*ResettableFunctionTicker) Do ¶ added in v0.5.1
func (t *ResettableFunctionTicker) Do(f func())
type ResettableFunctionTickerOption ¶ added in v0.5.1
type ResettableFunctionTickerOption func(*ResettableFunctionTicker)
func WithDuration ¶ added in v0.5.1
func WithDuration(d time.Duration) ResettableFunctionTickerOption
Click to show internal directories.
Click to hide internal directories.