Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrReporterRequired = errors.New("adminblocks: reporter is required")
ErrReporterRequired indicates the service was constructed without a reporter.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service exposes embedded block conflict reporting and backfill helpers.
func NewService ¶
func NewService(reporter *blocks.EmbeddedBlockBridge) *Service
NewService constructs a blocks admin service.
func (*Service) BackfillEmbeddedBlocks ¶
func (s *Service) BackfillEmbeddedBlocks(ctx context.Context, opts blocks.BackfillOptions) (blocks.BackfillReport, error)
BackfillEmbeddedBlocks migrates legacy block instances into embedded payloads.
func (*Service) ListConflicts ¶
func (s *Service) ListConflicts(ctx context.Context, opts blocks.ConflictReportOptions) ([]content.EmbeddedBlockConflict, error)
ListConflicts returns embedded-vs-legacy conflict reports.
Click to show internal directories.
Click to hide internal directories.