goproxy

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseRequestPath

func ParseRequestPath(path string) (ModulePath, Request, error)

Types

type InfoRequest

type InfoRequest struct {
	Version ModuleVersion
}

func (InfoRequest) Path

func (r InfoRequest) Path() string

type LatestRequest

type LatestRequest struct{}

func (LatestRequest) Path

func (LatestRequest) Path() string

type ListRequest

type ListRequest struct{}

func (ListRequest) Path

func (ListRequest) Path() string

type ModRequest

type ModRequest struct {
	Version ModuleVersion
}

func (ModRequest) Path

func (r ModRequest) Path() string

type ModuleInfo

type ModuleInfo struct {
	Version ModuleVersion
	Time    time.Time
	Origin  *ModuleOrigin
}

type ModuleOrigin

type ModuleOrigin struct {
	VCS  string
	URL  string
	Ref  string
	Hash string
}

type ModulePath

type ModulePath string // if not empty, holds a valid module path

func MakeModulePath

func MakeModulePath(str string) (ModulePath, error)

func UnescapeModulePath

func UnescapeModulePath(escaped string) (ModulePath, error)

func (ModulePath) Escaped

func (path ModulePath) Escaped() string

func (ModulePath) IsEmpty

func (path ModulePath) IsEmpty() bool

func (ModulePath) IsSet

func (path ModulePath) IsSet() bool

func (ModulePath) String

func (path ModulePath) String() string

func (*ModulePath) UnmarshalText

func (path *ModulePath) UnmarshalText(text []byte) error

type ModuleVersion

type ModuleVersion string // if not empty, holds a valid module version

func MakeModuleVersion

func MakeModuleVersion(str string) (ModuleVersion, error)

func UnescapeModuleVersion

func UnescapeModuleVersion(escaped string) (ModuleVersion, error)

func (ModuleVersion) Compare

func (version ModuleVersion) Compare(other ModuleVersion) int

func (ModuleVersion) Escaped

func (version ModuleVersion) Escaped() string

func (ModuleVersion) IsEmpty

func (version ModuleVersion) IsEmpty() bool

func (ModuleVersion) IsSet

func (version ModuleVersion) IsSet() bool

func (ModuleVersion) String

func (version ModuleVersion) String() string

func (*ModuleVersion) UnmarshalText

func (version *ModuleVersion) UnmarshalText(text []byte) error

type Request

type Request interface {
	Path() string
}

type ZipRequest

type ZipRequest struct {
	Version ModuleVersion
}

func (ZipRequest) Path

func (r ZipRequest) Path() string

Jump to

Keyboard shortcuts

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