npm

package
v0.0.0-...-c20e4a3 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: MIT Imports: 12 Imported by: 0

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 (s *Service) DownloadHandler(c *gin.Context)

func (*Service) MetadataHandler

func (s *Service) MetadataHandler(c *gin.Context)

func (*Service) UploadHandler

func (s *Service) UploadHandler(c *gin.Context)

Jump to

Keyboard shortcuts

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