prune

package
v1.7.0-citest.0-nomain Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run added in v1.3.0

func Run(ctx context.Context, p *Pruner, clock *timesync.NodeClock, interval time.Duration)

Types

type Opt added in v1.3.0

type Opt func(*Pruner)

func WithLogger added in v1.3.0

func WithLogger(logger *zap.Logger) Opt

type Pruner added in v1.3.0

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

func New added in v1.3.0

func New(db *sql.Database, safeDist uint32, activesetEpoch types.EpochID, opts ...Opt) *Pruner

func (*Pruner) Prune added in v1.3.0

func (p *Pruner) Prune(current types.LayerID) error

Jump to

Keyboard shortcuts

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