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.
Click to show internal directories.
Click to hide internal directories.