Documentation ¶
Index ¶
- type Service
- func (s *Service) GoMod(ctx context.Context, moduleVersion *module.Version) (data io.ReadCloser, err error)
- func (s *Service) Info(ctx context.Context, moduleVersion *module.Version) (info *gomoduleservice.Info, err error)
- func (s *Service) Latest(ctx context.Context, modulePath string) (info *gomoduleservice.Info, err error)
- func (s *Service) List(ctx context.Context, modulePath string) (io.ReadCloser, error)
- func (s *Service) Zip(ctx context.Context, moduleVersion *module.Version) (data io.ReadCloser, err error)
- type ServiceOptions
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
}
func NewService ¶
func NewService(opts ServiceOptions) (s *Service, err error)
NewService creates a new Go module service.
type ServiceOptions ¶
type ServiceOptions struct { GitCredentialHelperShell string HTTPProxyInfo *config.HTTPProxyInfo HTTPTransport http.RoundTripper MaxParallelCommands int ParentProxy *url.URL PrivateModules []*config.PrivateModulesElement PublicModules *config.PublicModules ScratchDir string Storage storage.Storage }
Click to show internal directories.
Click to hide internal directories.