Documentation ¶
Index ¶
- func ParseRequestPath(path string) (ModulePath, Request, error)
- type InfoRequest
- type LatestRequest
- type ListRequest
- type ModRequest
- type ModuleInfo
- type ModuleOrigin
- type ModulePath
- type ModuleVersion
- func (version ModuleVersion) Compare(other ModuleVersion) int
- func (version ModuleVersion) Escaped() string
- func (version ModuleVersion) IsEmpty() bool
- func (version ModuleVersion) IsSet() bool
- func (version ModuleVersion) String() string
- func (version *ModuleVersion) UnmarshalText(text []byte) error
- type Request
- type ZipRequest
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 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 ZipRequest ¶
type ZipRequest struct {
Version ModuleVersion
}
func (ZipRequest) Path ¶
func (r ZipRequest) Path() string
Click to show internal directories.
Click to hide internal directories.