Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetadataResponse ¶
type MetadataResponse struct { Name string `json:"name"` DistTags map[string]string `json:"dist-tags"` Versions map[string]PackageMetadata `json:"versions"` }
type PackageMetadata ¶
type PackageMetadata struct { Id string `json:"_id"` Description string `json:"description"` Readme string `json:"readme"` Name string `json:"name"` Version string `json:"version"` NodeVersion string `json:"_nodeVersion"` NpmVersion string `json:"_npmVersion"` Author map[string]string `json:"author"` Dist struct { Integrity string `json:"integrity"` Shasum string `json:"shasum"` Tarball string `json:"tarball"` } `json:"dist"` PublishConfig map[string]string `json:"publishConfig"` Scripts map[string]string `json:"scripts"` Keywords []string `json:"keywords"` License string `json:"license"` Main string `json:"main"` }
type Service ¶
type Service struct {
services.BasePackageService
}
func NewService ¶
func NewService(storage storage.BaseStorageBackend) *Service
func (*Service) DownloadHandler ¶
func (*Service) MetadataHandler ¶
func (*Service) UploadHandler ¶
Click to show internal directories.
Click to hide internal directories.