exporter

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service handles exporting registry data into seed files.

func NewService

func NewService(registryService service.RegistryService) *Service

NewService creates a new exporter service.

func (*Service) ExportToPath

func (s *Service) ExportToPath(ctx context.Context, outputPath string) (int, error)

ExportToPath collects all server definitions from the registry database and writes them to the provided file path using the same schema expected by the importer (array of apiv0.ServerJSON).

func (*Service) SetPageSize

func (s *Service) SetPageSize(size int)

SetPageSize allows tests to override the pagination size used when fetching server data from the registry service.

func (*Service) SetReadmeOutputPath

func (s *Service) SetReadmeOutputPath(path string)

SetReadmeOutputPath configures an optional README seed file output path.

Jump to

Keyboard shortcuts

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