usecase

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProxyUsecase

type ProxyUsecase interface {
	// LoadModule loads a module by the given module path.
	LoadModule(ctx context.Context, path string) (*domain.Module, error)

	// GetModFile returns a module's go.mod file.
	GetModFile(ctx context.Context, mod *domain.Module, ver string) (string, error)

	// ZipModule writes a zip file of the module to the given writer.
	ZipModule(ctx context.Context, mod *domain.Module, ver string, dst io.Writer) error
}

ProxyUsecase represents the usecases of a proxy.

func NewProxyUsecase

func NewProxyUsecase(moduleRepo domain.ModuleRepository) ProxyUsecase

NewProxyUsecase initializes a new ProxyUsecase.

Jump to

Keyboard shortcuts

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