worker

package
v0.0.0-...-1dac6a7 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Don <-chan struct{}
	Log logger.Interface
	Reg *registry.Registry
	Sig []Signer
}

type Daemon

type Daemon interface {
	Daemon()
}

type Ensure

type Ensure interface {
	Ensure(action.Interface)
}

type Signer

type Signer interface {
	Sign([]byte) (common.Hash, error)
	Type() string
}

type Worker

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

func New

func New(c Config) *Worker

func (*Worker) Daemon

func (w *Worker) Daemon()

func (*Worker) Ensure

func (w *Worker) Ensure(act action.Interface)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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