Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithPrunerMetrics ¶ added in v0.14.0
WithPrunerMetrics is a utility function to turn on pruner metrics and that is expected to be "invoked" by the fx lifecycle.
Types ¶
type AvailabilityWindow ¶
type Option ¶ added in v0.14.0
type Option func(*Params)
func WithDisabledGC ¶
func WithDisabledGC() Option
WithDisabledGC disables the pruning Service's pruning routine.
func WithGCCycle ¶
WithGCCycle configures how often the pruning Service triggers a pruning cycle.
type Params ¶ added in v0.14.0
type Params struct {
// contains filtered or unexported fields
}
func DefaultParams ¶ added in v0.14.0
func DefaultParams() Params
type Pruner ¶
type Pruner interface {
Prune(context.Context, *header.ExtendedHeader) error
}
Pruner contains methods necessary to prune data from the node's datastore.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service handles the pruning routine for the node using the prune Pruner.
func NewService ¶
func NewService( p Pruner, window AvailabilityWindow, getter hdr.Getter[*header.ExtendedHeader], ds datastore.Datastore, blockTime time.Duration, opts ...Option, ) *Service
func (*Service) WithMetrics ¶ added in v0.14.0
Click to show internal directories.
Click to hide internal directories.