Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultAfterDuration = 5 * time.Minute
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RunnableFactory ¶
type RunnableFactory func() Runnable
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
func NewRunner ¶
func NewRunner(ctx context.Context, logger *log.Logger, runnableFactory RunnableFactory, opts ...RunnerOption) *Runner
type RunnerOption ¶
type RunnerOption interface {
// contains filtered or unexported methods
}
func WithAfterDuration ¶
func WithAfterDuration(d time.Duration) RunnerOption
Click to show internal directories.
Click to hide internal directories.