github.com/sunriselayer/sunrise-da@v0.13.1-sr3/pruner/service.go (about)

     1  package pruner
     2  
     3  import (
     4  	"context"
     5  )
     6  
     7  // Service handles the pruning routine for the node using the
     8  // prune Pruner.
     9  type Service struct {
    10  	pruner Pruner
    11  }
    12  
    13  func NewService(p Pruner) *Service {
    14  	return &Service{
    15  		pruner: p,
    16  	}
    17  }
    18  
    19  func (s *Service) Start(context.Context) error {
    20  	return nil
    21  }
    22  
    23  func (s *Service) Stop(context.Context) error {
    24  	return nil
    25  }