service

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidFile = func(file string, message string) error {
		return fmt.Errorf("invalid file format: %s => %s", file, message)
	}
)

Functions

This section is empty.

Types

type Downloader

type Downloader interface {
	GetFile(file *domain.File) ([]byte, error)
}

type Service

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

func New

func New() *Service

func (*Service) Download

func (s *Service) Download(file string, outDirectory string, outPath string) error

func (*Service) GenConfig

func (s *Service) GenConfig(configFile string) error

GenConfig generates a default configuration file for the protosync tool in the current directory

func (*Service) GetDownloader

func (s *Service) GetDownloader(domain string) (Downloader, bool)

func (*Service) Register

func (s *Service) Register(domain string, d Downloader)

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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