importer

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2025 License: MIT 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 importing seed data into the registry

func NewService

func NewService(registry service.RegistryService) *Service

NewService creates a new importer service

func (*Service) ImportFromPath

func (s *Service) ImportFromPath(ctx context.Context, path string) error

ImportFromPath imports seed data from various sources: 1. Local file paths (*.json files) - expects ServerJSON array format 2. Direct HTTP URLs to seed.json files - expects ServerJSON array format 3. Registry root URLs (automatically appends /v0/servers and paginates)

Jump to

Keyboard shortcuts

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