handlertask

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2023 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricsReporter

type MetricsReporter interface {
	handlerattempt.MetricsReporter
}

type Options

type Options struct {
	Config  *config.Handler
	Journal *journal.Journal

	// Name of modified file
	Name string

	// Interface for reporting metrics.
	Metrics MetricsReporter
}

type Task

type Task struct {
	// contains filtered or unexported fields
}

func New

func New(opts Options) *Task

func (*Task) Name

func (t *Task) Name() string

func (*Task) Run

func (t *Task) Run(ctx context.Context, acquireLock func()) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL