beacon

package
v0.2201.6 Latest Latest
Warning

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

Go to latest
Published: May 6, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package beacon implements the random beacon worker.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Worker

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

func New

func New(
	identity *identity.Identity,
	consensus consensus.Backend,
	store *persistent.CommonStore,
	registrationWorker *registration.Worker,
) (*Worker, error)

New creates a new worker instance.

func (*Worker) Cleanup

func (w *Worker) Cleanup()

func (*Worker) Name

func (w *Worker) Name() string

func (*Worker) Quit

func (w *Worker) Quit() <-chan struct{}

func (*Worker) Start

func (w *Worker) Start() error

func (*Worker) Stop

func (w *Worker) Stop()

Jump to

Keyboard shortcuts

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