Documentation ¶
Index ¶
Constants ¶
View Source
const ( PathTypeListModule = "$base/$module/@v/list" PathTypeModuleMeta = "$base/$module/@v/$version.info" PathTypeModuleVersion = "$base/$module/@v/$version.mod" PathTypeModuleContent = "$base/$module/@v/$version.zip" PathTypeModuleLatestVersion = "$base/$module/@latest" PathTypeSumProxy = "<proxyURL>/sumdb/<databaseURL>" PathTypeSumProxySupported = "<proxyURL>/sumdb/<sumdb-name>/supported" )
View Source
const (
TriggerLoadAllVersionsAndLatestVersion = "PathTypeListModule,PathTypeModuleLatestVersion"
)
Variables ¶
Functions ¶
Types ¶
type GoModuleRepository ¶
type GoModuleRepository interface { // FetchResource fetch uri data & content-type with error if failed FetchResource(uri string, pathType string) ([]byte, string, error) SupportSumDBProxy(uri string) (bool, error) UploadResource(uri string, data []byte) error SupportUpload(uri string) (bool, error) }
func NewLocalCacheRepo ¶
func NewLocalCacheRepo(conf config.GoRepoConf, c *config.Config, sourceRepo GoModuleRepository) GoModuleRepository
func NewProxyRepo ¶
func NewProxyRepo(conf config.GoRepoConf, gc *config.Config) GoModuleRepository
Click to show internal directories.
Click to hide internal directories.