Versions in this module Expand all Collapse all v1 v1.1.0 May 31, 2019 v1.0.0 May 21, 2019 Changes in this version + var ErrInvalidPath = errors.New("invalid path") + var ErrInvalidPathType = errors.New("invalid path type") + var ErrUnknownPathType = errors.New("unknown path type") + var ErrUnknownVersion = errors.New("unknown version") + type Info struct + Time time.Time + Version string + type List struct + Dir string + GoMod string + Path string + Time time.Time + Version string + Versions Versions + func (s *List) GetVersions() Versions + type Module struct + func NewModule(addr, version string) *Module + func (m *Module) GetAddr() string + func (m *Module) GetAddrWithVersion() string + func (m *Module) GetDomain() string + func (m *Module) GetInfoAddr(base string, isUpstream bool) (string, error) + func (m *Module) GetLatestAddr(base string, isUpstream bool) (string, error) + func (m *Module) GetListAddr(base string, isUpstream bool) (string, error) + func (m *Module) GetModAddr(base string, isUpstream bool) (string, error) + func (m *Module) GetStorageInfo(base string) (io.ReadCloser, error) + func (m *Module) GetStorageMod(base string) (io.ReadCloser, error) + func (m *Module) GetStorageZip(base string) (io.ReadCloser, error) + func (m *Module) GetVersion() string + func (m *Module) GetZipAddr(base string, isUpstream bool) (string, error) + type Path struct + func NewPath(raw string) (*Path, error) + func (m *Path) GetModAddr() string + func (m *Path) GetModVersion() string + func (m *Path) GetType() PathType + type PathType uint8 + const TypePathInfo + const TypePathLatest + const TypePathList + const TypePathMod + const TypePathUnknown + const TypePathZip + type Versions []string + func (v Versions) String() string