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 ¶
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 ¶
SetPageSize allows tests to override the pagination size used when fetching server data from the registry service.
func (*Service) SetReadmeOutputPath ¶
SetReadmeOutputPath configures an optional README seed file output path.
Click to show internal directories.
Click to hide internal directories.