straynodes

package
v1.78.1 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chore

type Chore struct {
	Loop *sync2.Cycle
	// contains filtered or unexported fields
}

Chore disqualifies stray nodes.

func NewChore

func NewChore(log *zap.Logger, cache *overlay.Service, config Config) *Chore

NewChore creates a new stray nodes Chore.

func (*Chore) Close

func (chore *Chore) Close() error

Close closes chore.

func (*Chore) Run

func (chore *Chore) Run(ctx context.Context) (err error)

Run runs the chore.

type Config

type Config struct {
	EnableDQ                  bool          `` /* 126-byte string literal not displayed */
	Interval                  time.Duration `help:"how often to check for and DQ stray nodes" releaseDefault:"168h" devDefault:"5m" testDefault:"1m"`
	MaxDurationWithoutContact time.Duration `` /* 148-byte string literal not displayed */
	Limit                     int           `` /* 153-byte string literal not displayed */
}

Config contains configurable values for stray nodes chore.

Jump to

Keyboard shortcuts

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