Documentation ¶
Overview ¶
Package dbcleanup defines the life cycle and logic of beacon DB cleanup routine.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CleanupService ¶
type CleanupService struct {
// contains filtered or unexported fields
}
CleanupService represents a service that handles routine task for cleaning up beacon DB so our DB won't grow infinitely. Currently it only cleans up block vote cache. In future, it could add more tasks such as cleaning up historical beacon states.
func NewCleanupService ¶
func NewCleanupService(ctx context.Context, cfg *Config) *CleanupService
NewCleanupService creates a new cleanup service instance.
func (*CleanupService) Status ¶
func (d *CleanupService) Status() error
Status always returns nil. TODO(1203): Add service health checks.
Click to show internal directories.
Click to hide internal directories.