golang.org/x/pkgsite/internal/proxy.Module.ModulePath (field)

30 uses

	golang.org/x/pkgsite/internal/proxy (current package)
		module.go#L11: 	ModulePath string
		module.go#L21: 	m2.ModulePath = modulePath
		module.go#L53: 		panic(fmt.Sprintf("%s@%s does not have a file named %s", m.ModulePath, m.Version, filename))
		module.go#L56: 		panic(fmt.Sprintf("%s@%s already has a file named %s", m.ModulePath, m.Version, filename))
		server.go#L71: 		goMod = defaultGoMod(m.ModulePath)
		server.go#L73: 	s.mux.HandleFunc(fmt.Sprintf("/%s/@v/%s.mod", m.ModulePath, m.Version),
		server.go#L75: 			http.ServeContent(w, r, m.ModulePath, time.Now(), strings.NewReader(goMod))
		server.go#L81: 	s.mux.HandleFunc(fmt.Sprintf("/%s/@v/%s.zip", m.ModulePath, m.Version),
		server.go#L86: 			http.ServeContent(w, r, m.ModulePath, time.Now(), bytes.NewReader(m.zip))
		server.go#L131: 	if _, ok := s.modules[m.ModulePath]; !ok {
		server.go#L133: 			s.handleList(m.ModulePath)
		server.go#L134: 			s.handleLatest(m.ModulePath, fmt.Sprintf("/%s/@latest", m.ModulePath))
		server.go#L138: 				s.handleLatest(m.ModulePath, fmt.Sprintf("/%s/@v/master.info", m.ModulePath))
		server.go#L141: 				s.handleLatest(m.ModulePath, fmt.Sprintf("/%s/@v/main.info", m.ModulePath))
		server.go#L144: 			s.mux.HandleFunc(fmt.Sprintf("/%s/@v/list", m.ModulePath), func(w http.ResponseWriter, r *http.Request) {
		server.go#L145: 				http.ServeContent(w, r, m.ModulePath, time.Now(), strings.NewReader(""))
		server.go#L147: 			s.mux.HandleFunc(fmt.Sprintf("/%s/@latest", m.ModulePath), func(w http.ResponseWriter, r *http.Request) {
		server.go#L152: 	s.handleInfo(m.ModulePath, m.Version, m.NotCached)
		server.go#L156: 	s.modules[m.ModulePath] = append(s.modules[m.ModulePath], m)
		server.go#L157: 	sort.Slice(s.modules[m.ModulePath], func(i, j int) bool {
		server.go#L159: 		return semver.Compare(s.modules[m.ModulePath][i].Version, s.modules[m.ModulePath][j].Version) < 0
		server.go#L178: 		p := m.ModulePath + "@" + m.Version + "/" + path
		test_helper.go#L87: 		ModulePath: modulePath,
		test_helper.go#L99: 			m.ModulePath = modfile.ModulePath(f.Data)
		test_helper.go#L110: 		if m.ModulePath == path && (version == "" || m.Version == version) {