diff --git a/DungeonCrawler-master.zip b/DungeonCrawler-master.zip deleted file mode 100644 index 44700fbb..00000000 Binary files a/DungeonCrawler-master.zip and /dev/null differ diff --git a/proxy/goproxy.cn-master/goproxy.cn-master/.github/ISSUE_TEMPLATE/bug-report.md b/proxy/goproxy.cn-master/goproxy.cn-master/.github/ISSUE_TEMPLATE/bug-report.md deleted file mode 100644 index 6d185a5f..00000000 --- a/proxy/goproxy.cn-master/goproxy.cn-master/.github/ISSUE_TEMPLATE/bug-report.md +++ /dev/null @@ -1,46 +0,0 @@ ---- -name: Bug report -about: Create a report to help us improve. -title: 'Bug: ' -labels: '' -assignees: '' - ---- - - - -## What is the output when you execute the `go version` command? - -
-$ go version - - -- -## What is the output when you execute the `go env` command? - -
go env Output-$ go env - - --
-$ go version - - -- -## What is the output when you execute the `go env` command? - -
go env Output-$ go env - - --
-$ go version - - -- -## 当你执行 `go env` 命令后的输出结果是什么? - -
go env 的输出结果-$ go env - - --
New Question button below. Please pay attention to follow the issue template we have prepared for you, that will help us better answer your question." = "If you can't find the answer to the question you want to ask below, you can always post your question by clicking the New Question button below. Please pay attention to follow the issue template we have prepared for you, that will help us better answer your question."
-"Index" = "Index"
-"New Question" = "New Question"
-"Qiniu Cloud" = "Qiniu Cloud"
-"Statistics" = "Statistics"
-"Status" = "Status"
-"Table of Contents" = "Table of Contents"
-"The most trusted Go module proxy in China." = "The most trusted Go module proxy in China."
-"https://github.com/goproxy/goproxy.cn/issues/new?assignees=&labels=&template=new-question.md&title=Question%3A+" = "https://github.com/goproxy/goproxy.cn/issues/new?assignees=&labels=&template=new-question.md&title=Question%3A+"
-"https://www.qiniu.com/en" = "https://www.qiniu.com/en"
-"i18n.locale" = "English"
-"index.html" = "index.html"
-"stats.html" = "stats.html"
diff --git a/proxy/goproxy.cn-master/goproxy.cn-master/locales/zh-CN.toml b/proxy/goproxy.cn-master/goproxy.cn-master/locales/zh-CN.toml
deleted file mode 100644
index 0130f6e0..00000000
--- a/proxy/goproxy.cn-master/goproxy.cn-master/locales/zh-CN.toml
+++ /dev/null
@@ -1,16 +0,0 @@
-"Aofei Sheng" = "盛傲飞"
-"Contact" = "联系我们"
-"FAQ" = "常见问题"
-"If you can't find the answer to the question you want to ask below, you can always post your question by clicking the New Question button below. Please pay attention to follow the issue template we have prepared for you, that will help us better answer your question." = "如果你无法在下方找到你想要问的问题的解答,那么可以随时通过点击下方的新建问题按钮来发表你的问题。请注意遵循我们为你准备好的 Issue 模版,那样可以帮助我们更好地解答你的问题。"
-"Index" = "首页"
-"New Question" = "新建问题"
-"Qiniu Cloud" = "七牛云"
-"Statistics" = "统计数据"
-"Status" = "状态页"
-"Table of Contents" = "目录"
-"The most trusted Go module proxy in China." = "中国最可靠的 Go 模块代理。"
-"https://github.com/goproxy/goproxy.cn/issues/new?assignees=&labels=&template=new-question.md&title=Question%3A+" = "https://github.com/goproxy/goproxy.cn/issues/new?assignees=&labels=&template=new-question.zh-CN.md&title=问题:"
-"https://www.qiniu.com/en" = "https://www.qiniu.com"
-"i18n.locale" = "简体中文"
-"index.html" = "index.zh-CN.html"
-"stats.html" = "stats.zh-CN.html"
diff --git a/proxy/goproxy.cn-master/goproxy.cn-master/main.go b/proxy/goproxy.cn-master/goproxy.cn-master/main.go
deleted file mode 100644
index 3526b017..00000000
--- a/proxy/goproxy.cn-master/goproxy.cn-master/main.go
+++ /dev/null
@@ -1,74 +0,0 @@
-package main
-
-import (
- "context"
- "log"
- "net/url"
- "os"
- "os/signal"
- "syscall"
- "time"
- "unicode/utf8"
-
- "github.com/air-gases/defibrillator"
- "github.com/air-gases/langman"
- "github.com/air-gases/limiter"
- "github.com/air-gases/logger"
- "github.com/aofei/air"
- "github.com/goproxy/goproxy.cn/base"
- "github.com/goproxy/goproxy.cn/handler"
-)
-
-func main() {
- base.Air.NotFoundHandler = handler.NotFound
- base.Air.MethodNotAllowedHandler = handler.MethodNotAllowed
- base.Air.ErrorHandler = handler.Error
- base.Air.ErrorLogger = log.New(base.Logger, "", 0)
-
- base.Air.Pregases = []air.Gas{
- logger.Gas(logger.GasConfig{
- Logger: &base.Logger,
- IncludeClientAddress: true,
- }),
- defibrillator.Gas(defibrillator.GasConfig{}),
- limiter.BodySizeGas(limiter.BodySizeGasConfig{
- MaxBytes: 1 << 20,
- }),
- func(next air.Handler) air.Handler {
- return func(req *air.Request, res *air.Response) error {
- path, err := url.PathUnescape(req.Path)
- if err != nil || !utf8.ValidString(path) {
- return handler.CacheableNotFound(
- req,
- res,
- 86400,
- )
- }
-
- return next(req, res)
- }
- },
- }
-
- base.Air.Gases = []air.Gas{
- langman.Gas(langman.GasConfig{
- CookieMaxAge: 31536000,
- }),
- }
-
- go func() {
- if err := base.Air.Serve(); err != nil {
- base.Logger.Error().Err(err).
- Msg("air server error")
- }
- }()
-
- shutdownChan := make(chan os.Signal, 1)
- signal.Notify(shutdownChan, os.Interrupt, syscall.SIGTERM)
- <-shutdownChan
-
- ctx, cancel := context.WithTimeout(context.Background(), time.Minute)
- defer cancel()
-
- base.Air.Shutdown(ctx)
-}
diff --git a/proxy/goproxy.cn-master/goproxy.cn-master/qas/000.000.en-US.md b/proxy/goproxy.cn-master/goproxy.cn-master/qas/000.000.en-US.md
deleted file mode 100644
index 26bd0fc6..00000000
--- a/proxy/goproxy.cn-master/goproxy.cn-master/qas/000.000.en-US.md
+++ /dev/null
@@ -1,11 +0,0 @@
-+++
-question = "I committed a new revision to a repository, why isn't it showing up when I run go get -u or go list -m -versions?"
-+++
-
-If you're using Goproxy.cn as your Go module proxy. Then you need to know in
-order to improve caching and serving latencies, new revisions may not show up
-right away. If you want new revision to be immediately available in Goproxy.cn,
-then first make sure there is a semantically versioned tag for this revision in
-the source repository. Then explicitly request that tagged version via
-`go get module@version`. After couple of minutes for caches to expire, the `go`
-command will see that tagged version.
diff --git a/proxy/goproxy.cn-master/goproxy.cn-master/qas/000.000.zh-CN.md b/proxy/goproxy.cn-master/goproxy.cn-master/qas/000.000.zh-CN.md
deleted file mode 100644
index 5f4c1f87..00000000
--- a/proxy/goproxy.cn-master/goproxy.cn-master/qas/000.000.zh-CN.md
+++ /dev/null
@@ -1,5 +0,0 @@
-+++
-question = "我对一个库提交了新的修改,为什么在我运行 go get -u 或 go list -m -versions 时它却没有出现?"
-+++
-
-如果你正在使用 Goproxy.cn 作为你的 Go 模块代理,那么你需要知道为了改善缓存和服务等待时间,新修改可能不会立即出现。如果你希望新修改立即出现在 Goproxy.cn 中,则首先确保在源库中有此修改的语义化版本的标签,接着通过 `go get module@version` 来显式地请求那个发行版。在几分钟过后缓存过期,`go` 命令就能看到那个发行版了。
diff --git a/proxy/goproxy.cn-master/goproxy.cn-master/qas/001.000.en-US.md b/proxy/goproxy.cn-master/goproxy.cn-master/qas/001.000.en-US.md
deleted file mode 100644
index 4a6fdce5..00000000
--- a/proxy/goproxy.cn-master/goproxy.cn-master/qas/001.000.en-US.md
+++ /dev/null
@@ -1,10 +0,0 @@
-+++
-question = "I removed a bad release from my repository but it still appears, what should I do?"
-+++
-
-If you're using Goproxy.cn as your Go module proxy. Then you need to know
-whenever possible, Goproxy.cn aims to cache content in order to avoid breaking
-builds for people that depend on your module, so this bad release may still be
-available in Goproxy.cn even if it is not available at the origin. The same
-situation applies if you delete your entire repository. We suggest creating a
-new release and encouraging people to use that one instead.
diff --git a/proxy/goproxy.cn-master/goproxy.cn-master/qas/001.000.zh-CN.md b/proxy/goproxy.cn-master/goproxy.cn-master/qas/001.000.zh-CN.md
deleted file mode 100644
index 0e06a4f0..00000000
--- a/proxy/goproxy.cn-master/goproxy.cn-master/qas/001.000.zh-CN.md
+++ /dev/null
@@ -1,5 +0,0 @@
-+++
-question = "我从我的库中移除了一个有问题的发行版,但它却仍然出现,我该怎么办?"
-+++
-
-如果你正在使用 Goproxy.cn 作为你的 Go 模块代理,那么你需要知道为了避免依赖你的模块的人的构建被破坏,Goproxy.cn 会尽可能地缓存内容。因此,即使一个发行版在源库中已经不存在了,但它在 Goproxy.cn 中却仍然有可能继续存在。如果你删除了你的整个库,则情况相同。我们建议你创建一个新的发行版并鼓励人们使用它,而不是移除一个已发布的。
diff --git a/proxy/goproxy.cn-master/goproxy.cn-master/robots.txt b/proxy/goproxy.cn-master/goproxy.cn-master/robots.txt
deleted file mode 100644
index 9e369696..00000000
--- a/proxy/goproxy.cn-master/goproxy.cn-master/robots.txt
+++ /dev/null
@@ -1,8 +0,0 @@
-User-agent: *
-Disallow: /*/@latest
-Disallow: /*/@v/list
-Disallow: /*/@v/*.info
-Disallow: /*/@v/*.mod
-Disallow: /*/@v/*.zip
-Disallow: /sumdb/
-Disallow: /stats/
diff --git a/proxy/goproxy.cn-master/goproxy.cn-master/templates/faq.html b/proxy/goproxy.cn-master/goproxy.cn-master/templates/faq.html
deleted file mode 100644
index 1c41fa90..00000000
--- a/proxy/goproxy.cn-master/goproxy.cn-master/templates/faq.html
+++ /dev/null
@@ -1,55 +0,0 @@
-{{str2html (locstr "If you can't find the answer to the question you want to ask below, you can always post your question by clicking the New Question button below. Please pay attention to follow the issue template we have prepared for you, that will help us better answer your question.")}}
{{.Answer $.Locale}}
-The most trusted Go module proxy in China.
-{{.ModuleVersionCount}} module versions cached
- Star -We are using Qiniu Cloud CDN to accelerate our service globally without placing any bandwidth limits. With thousands of CDN nodes and 100Gbps+ single-node bandwidth, you will be given the ability to download module versions at a blazing fast speed.
-We do not just place no bandwidth limits. Furthermore, we have not placed any rate limits. This means that you can use our service in any scenario, like CI/CD. You can even use our service as an upstream proxy, just like goproxy.baidu.com does.
-We are always using the latest Go version, even the unstable version. Because we provide cutting-edge feature support. In particular, we support proxying the default checksum database sum.golang.org. You don't need to do anything extra, it just works.
-For everyone to better understand the activity of all modules in our service, we have launched the very first Statistics API of the Go module proxy world. With the decent RESTful API design, you will be able to easily query statistics for all module versions in our service.
-Go 1.13 and above (RECOMMENDED)
-Open your terminal and execute
-$ go env -w GO111MODULE=on
-$ go env -w GOPROXY=https://goproxy.cn,direct
- done.
- - -Open your terminal and execute
-$ export GO111MODULE=on
-$ export GOPROXY=https://goproxy.cn
- or
-$ echo "export GO111MODULE=on" >> ~/.profile
-$ echo "export GOPROXY=https://goproxy.cn" >> ~/.profile
-$ source ~/.profile
- done.
- - -Open your terminal and execute
-C:\> $env:GO111MODULE = "on"
-C:\> $env:GOPROXY = "https://goproxy.cn"
- or
-1. Open the Start Search, type in "env"
-2. Choose the "Edit the system environment variables"
-3. Click the "Environment Variables…" button
-4. Under the "User variables for <YOUR_USERNAME>" section (the upper half)
-5. Click the "New..." button
-6. Choose the "Variable name" input bar, type in "GO111MODULE"
-7. Choose the "Variable value" input bar, type in "on"
-8. Click the "OK" button
-9. Click the "New..." button
-10. Choose the "Variable name" input bar, type in "GOPROXY"
-11. Choose the "Variable value" input bar, type in "https://goproxy.cn"
-12. Click the "OK" button
- done.
-Your code is always yours, so we provide you with the coolest self-hosted Go module proxy building solution in the world. By using Goproxy, a minimalist project, you can easily add Go module proxy support to any existing web service, you know that Goproxy.cn is built on it.
-Create a file named goproxy.go
package main
-
-import (
- "net/http"
- "os"
-
- "github.com/goproxy/goproxy"
-)
-
-func main() {
- http.ListenAndServe("localhost:8080", &goproxy.Goproxy{
- GoBinEnv: append(
- os.Environ(),
- "GOPROXY=https://goproxy.cn,direct", // Use Goproxy.cn as the upstream proxy
- "GOPRIVATE=git.example.com", // Solve the problem of pulling private modules
- ),
- ProxiedSUMDBs: []string{
- "sum.golang.org https://goproxy.cn/sumdb/sum.golang.org", // Proxy the default checksum database
- },
- })
-}
- and run it
-$ go run goproxy.go
- then try it by setting GOPROXY to http://localhost:8080. In addition, we also recommend that you set GO111MODULE to on.
That's it, a fully functional Go module proxy is successfully built. In fact, you can use Goproxy with your favorite web frameworks, such as Gin and Echo, all you need to do is add one more route. For more advanced usage please check the documentation.
-我们正在使用七牛云 CDN 在全球范围内加速我们的服务,并且我们没有设置任何带宽限制。凭借着数以千计的 CDN 节点和 100Gbps+ 的单节点带宽,你将被赋予一个以极快的速度下载模块版本的能力。
-我们不但没有设置带宽限制。更进一步地,我们还没有设置任何速率限制。这意味着你可以在任何场景下使用我们的服务,例如 CI/CD。你甚至可以像 goproxy.baidu.com 一样将我们的服务用作上游代理。
-我们一直在使用最新的 Go 版本,甚至是不稳定版本,因此我们提供了最前沿的功能支持。特别地,我们支持代理默认的校验和数据库 sum.golang.org。你无需进行其他额外的配置,它便可以正常工作。
-为了使大家可以更好地了解我们的服务中所有模块的活跃度,我们推出了 Go 模块代理世界中的首个统计数据 API。通过得体的 RESTful API 设计,你将能够轻松地查询我们服务中所有模块版本的统计数据。
-打开你的终端并执行
-$ go env -w GO111MODULE=on
-$ go env -w GOPROXY=https://goproxy.cn,direct
- 完成。
- - -打开你的终端并执行
-$ export GO111MODULE=on
-$ export GOPROXY=https://goproxy.cn
- 或者
-$ echo "export GO111MODULE=on" >> ~/.profile
-$ echo "export GOPROXY=https://goproxy.cn" >> ~/.profile
-$ source ~/.profile
- 完成。
- - -打开你的 PowerShell 并执行
-C:\> $env:GO111MODULE = "on"
-C:\> $env:GOPROXY = "https://goproxy.cn"
- 或者
-1. 打开“开始”并搜索“env”
-2. 选择“编辑系统环境变量”
-3. 点击“环境变量…”按钮
-4. 在“<你的用户名> 的用户变量”章节下(上半部分)
-5. 点击“新建…”按钮
-6. 选择“变量名”输入框并输入“GO111MODULE”
-7. 选择“变量值”输入框并输入“on”
-8. 点击“确定”按钮
-9. 点击“新建…”按钮
-10. 选择“变量名”输入框并输入“GOPROXY”
-11. 选择“变量值”输入框并输入“https://goproxy.cn”
-12. 点击“确定”按钮
- 完成。
-你的代码永远只属于你自己,因此我们向你提供目前世界上最炫酷的自托管 Go 模块代理搭建方案。通过使用 Goproxy 这个极简主义项目,你可以在现有的任意 Web 服务中轻松地引入 Go 模块代理支持,要知道 Goproxy.cn 就是基于它搭建的。
-创建一个名为 goproxy.go 的文件
package main
-
-import (
- "net/http"
- "os"
-
- "github.com/goproxy/goproxy"
-)
-
-func main() {
- http.ListenAndServe("localhost:8080", &goproxy.Goproxy{
- GoBinEnv: append(
- os.Environ(),
- "GOPROXY=https://goproxy.cn,direct", // 使用 Goproxy.cn 作为上游代理
- "GOPRIVATE=git.example.com", // 解决私有模块的拉取问题(比如可以配置成公司内部的代码源)
- ),
- ProxiedSUMDBs: []string{
- "sum.golang.org https://goproxy.cn/sumdb/sum.golang.org", // 代理默认的校验和数据库
- },
- })
-}
- 并且运行它
-$ go run goproxy.go
- 然后通过把 GOPROXY 设置为 http://localhost:8080 来试用它。另外,我们也建议你把 GO111MODULE 设置为 on。
就这么简单,一个功能完备的 Go 模块代理就搭建成功了。事实上,你还可以将 Goproxy 结合着你钟爱的 Web 框架一起使用,比如 Gin 和 Echo,你所需要做的只是多添加一条路由而已。更高级的用法请查看文档。
-Get the summary information of the service, such as the total size and total number of all module versions in the service.
-GET /stats/summary
- Example request URL: goproxy.cn/stats/summary
-Example response body:
-{
- "cacher_size": 2663405247231,
- "module_version_count": 1035421,
- "module_host_count": 1120,
- "top_10_module_hosts": [
- {"module_host": "github.com", "module_version_count": 921606},
- {"module_host": "k8s.io", "module_version_count": 24982},
- {"module_host": "gitlab.com", "module_version_count": 13172},
- {"module_host": "gopkg.in", "module_version_count": 10479},
- {"module_host": "golang.org", "module_version_count": 8000},
- {"module_host": "gitee.com", "module_version_count": 4650},
- {"module_host": "bitbucket.org", "module_version_count": 4177},
- {"module_host": "sigs.k8s.io", "module_version_count": 3280},
- {"module_host": "google.golang.org", "module_version_count": 2703},
- {"module_host": "istio.io", "module_version_count": 2487}
- ]
-}
- Get module trends in service, such as the most active top 1000 module in the most recent period.
-GET /stats/trends/<trend>
- The path parameter <trend> is REQUIRED and has three options: latest (latest trend), last-7-days (trend in the last 7 days), and last-30-days (trend in the last 30 days).
Example request URL: goproxy.cn/stats/trends/latest
-Example response body:
-[
- {"module_path": "golang.org/x/sys", "download_count": 1822180},
- {"module_path": "golang.org/x/net", "download_count": 1713080},
- {"module_path": "golang.org/x/tools", "download_count": 1503522},
- {"module_path": "golang.org/x/crypto", "download_count": 1032270},
- {"module_path": "gopkg.in/yaml.v2", "download_count": 578120}
-]
- Get the statistics of the specified module (version) in the service, such as the total number of downloads of the specified module (version) and its single-day downloads in the last 30 days.
-GET /stats/<module-path>[@<module-version>]
- The path parameter <module-path> is REQUIRED, for example: golang.org/x/text.
-
The path parameter <module-version> is OPTIONAL, and note that it can only appear with the leading symbol @, for example: @v0.3.2.
-
Example request URL: goproxy.cn/stats/golang.org/x/text
-Example response body:
-{
- "download_count": 476705,
- "last_30_days": [
- {"date": "2020-03-25T00:00:00Z", "download_count": 15940},
- {"date": "2020-03-24T00:00:00Z", "download_count": 16884},
- {"date": "2020-03-23T00:00:00Z", "download_count": 15842},
- {"date": "2020-03-22T00:00:00Z", "download_count": 11232},
- {"date": "2020-03-21T00:00:00Z", "download_count": 11894},
- {"date": "2020-03-20T00:00:00Z", "download_count": 14968},
- {"date": "2020-03-19T00:00:00Z", "download_count": 11017},
- {"date": "2020-03-18T00:00:00Z", "download_count": 5209},
- {"date": "2020-03-17T00:00:00Z", "download_count": 5759},
- {"date": "2020-03-16T00:00:00Z", "download_count": 4166},
- {"date": "2020-03-15T00:00:00Z", "download_count": 2145},
- {"date": "2020-03-14T00:00:00Z", "download_count": 2218},
- {"date": "2020-03-13T00:00:00Z", "download_count": 4609},
- {"date": "2020-03-12T00:00:00Z", "download_count": 5503},
- {"date": "2020-03-11T00:00:00Z", "download_count": 5412},
- {"date": "2020-03-10T00:00:00Z", "download_count": 6453},
- {"date": "2020-03-09T00:00:00Z", "download_count": 4798},
- {"date": "2020-03-08T00:00:00Z", "download_count": 2323},
- {"date": "2020-03-07T00:00:00Z", "download_count": 2332},
- {"date": "2020-03-06T00:00:00Z", "download_count": 4806},
- {"date": "2020-03-05T00:00:00Z", "download_count": 6339},
- {"date": "2020-03-04T00:00:00Z", "download_count": 5858},
- {"date": "2020-03-03T00:00:00Z", "download_count": 5579},
- {"date": "2020-03-02T00:00:00Z", "download_count": 8862},
- {"date": "2020-03-01T00:00:00Z", "download_count": 2119},
- {"date": "2020-02-29T00:00:00Z", "download_count": 2053},
- {"date": "2020-02-28T00:00:00Z", "download_count": 4735},
- {"date": "2020-02-27T00:00:00Z", "download_count": 6578},
- {"date": "2020-02-26T00:00:00Z", "download_count": 4954},
- {"date": "2020-02-25T00:00:00Z", "download_count": 5318}
- ],
- "top_10_module_versions": [
- {"module_version": "v0.3.2", "download_count": 232795},
- {"module_version": "v0.3.0", "download_count": 146009},
- {"module_version": "v0.3.1-0.20180807135948-17ff2d5776d2", "download_count": 67096},
- {"module_version": "v0.3.1-0.20181227161524-e6919f6577db", "download_count": 11494},
- {"module_version": "v0.0.0-20160726164857-2910a502d2bf", "download_count": 11223},
- {"module_version": "v0.0.0-20170915032832-14c0d48ead0c", "download_count": 3991},
- {"module_version": "v0.3.1-0.20171227012246-e19ae1496984", "download_count": 1128},
- {"module_version": "v0.0.0-20170915090833-1cbadb444a80", "download_count": 937},
- {"module_version": "v0.3.1-0.20181030141323-6f44c5a2ea40", "download_count": 480},
- {"module_version": "v0.3.1", "download_count": 353}
- ]
-}
- Example request URL: goproxy.cn/stats/golang.org/x/text@v0.3.2
-Example response body:
-{
- "download_count": 232795,
- "last_30_days": [
- {"date": "2020-03-25T00:00:00Z", "download_count": 12852},
- {"date": "2020-03-24T00:00:00Z", "download_count": 12708},
- {"date": "2020-03-23T00:00:00Z", "download_count": 12602},
- {"date": "2020-03-22T00:00:00Z", "download_count": 10371},
- {"date": "2020-03-21T00:00:00Z", "download_count": 10673},
- {"date": "2020-03-20T00:00:00Z", "download_count": 11882},
- {"date": "2020-03-19T00:00:00Z", "download_count": 8379},
- {"date": "2020-03-18T00:00:00Z", "download_count": 2244},
- {"date": "2020-03-17T00:00:00Z", "download_count": 2407},
- {"date": "2020-03-16T00:00:00Z", "download_count": 1696},
- {"date": "2020-03-15T00:00:00Z", "download_count": 981},
- {"date": "2020-03-14T00:00:00Z", "download_count": 897},
- {"date": "2020-03-13T00:00:00Z", "download_count": 1898},
- {"date": "2020-03-12T00:00:00Z", "download_count": 2498},
- {"date": "2020-03-11T00:00:00Z", "download_count": 2374},
- {"date": "2020-03-10T00:00:00Z", "download_count": 2491},
- {"date": "2020-03-09T00:00:00Z", "download_count": 1854},
- {"date": "2020-03-08T00:00:00Z", "download_count": 800},
- {"date": "2020-03-07T00:00:00Z", "download_count": 981},
- {"date": "2020-03-06T00:00:00Z", "download_count": 2085},
- {"date": "2020-03-05T00:00:00Z", "download_count": 2642},
- {"date": "2020-03-04T00:00:00Z", "download_count": 2212},
- {"date": "2020-03-03T00:00:00Z", "download_count": 2515},
- {"date": "2020-03-02T00:00:00Z", "download_count": 2832},
- {"date": "2020-03-01T00:00:00Z", "download_count": 785},
- {"date": "2020-02-29T00:00:00Z", "download_count": 871},
- {"date": "2020-02-28T00:00:00Z", "download_count": 2019},
- {"date": "2020-02-27T00:00:00Z", "download_count": 2480},
- {"date": "2020-02-26T00:00:00Z", "download_count": 2163},
- {"date": "2020-02-25T00:00:00Z", "download_count": 2344}
- ]
-}
- Get the badge for the total download of the specified module in the service.
-GET /stats/<module-path>/badges/download-count.svg
- The path parameter <module-path> is REQUIRED, for example: golang.org/x/text.
-
Example request URL: goproxy.cn/stats/golang.org/x/text/badges/download-count.svg
-Example response body:
-The total download badge for a specified module can be placed in the project's README.md using the following Markdown syntax:
[](https://goproxy.cn)
- 获取服务的摘要信息,如服务中所有模块版本的总尺寸和总数等。
-GET /stats/summary
- 示例请求 URL:goproxy.cn/stats/summary
-示例响应主体:
-{
- "cacher_size": 2663405247231,
- "module_version_count": 1035421,
- "module_host_count": 1120,
- "top_10_module_hosts": [
- {"module_host": "github.com", "module_version_count": 921606},
- {"module_host": "k8s.io", "module_version_count": 24982},
- {"module_host": "gitlab.com", "module_version_count": 13172},
- {"module_host": "gopkg.in", "module_version_count": 10479},
- {"module_host": "golang.org", "module_version_count": 8000},
- {"module_host": "gitee.com", "module_version_count": 4650},
- {"module_host": "bitbucket.org", "module_version_count": 4177},
- {"module_host": "sigs.k8s.io", "module_version_count": 3280},
- {"module_host": "google.golang.org", "module_version_count": 2703},
- {"module_host": "istio.io", "module_version_count": 2487}
- ]
-}
- 获取服务中的模块趋势,如最近一段时间内最活跃的最多前 1000 个模块。
-GET /stats/trends/<trend>
- 路径参数 <trend> 是必填的,它拥有三个选项:latest(最新趋势)、last-7-days(最近 7 天的趋势)和 last-30-days(最近 30 天的趋势)。
示例请求 URL:goproxy.cn/stats/trends/latest
-示例响应主体:
-[
- {"module_path": "golang.org/x/sys", "download_count": 1822180},
- {"module_path": "golang.org/x/net", "download_count": 1713080},
- {"module_path": "golang.org/x/tools", "download_count": 1503522},
- {"module_path": "golang.org/x/crypto", "download_count": 1032270},
- {"module_path": "gopkg.in/yaml.v2", "download_count": 578120}
-]
- 获取服务中指定模块(版本)的统计,如指定模块(版本)的总下载次数和其在最近 30 天内的单日下载次数。
-GET /stats/<module-path>[@<module-version>]
- 路径参数 <module-path> 是必填的,如:golang.org/x/text。
路径参数 <module-version> 是可选的,并且需要注意它只能伴随着前导符号 @ 一起出现,如:@v0.3.2。
示例请求 URL:goproxy.cn/stats/golang.org/x/text
-示例响应主体:
-{
- "download_count": 476705,
- "last_30_days": [
- {"date": "2020-03-25T00:00:00Z", "download_count": 15940},
- {"date": "2020-03-24T00:00:00Z", "download_count": 16884},
- {"date": "2020-03-23T00:00:00Z", "download_count": 15842},
- {"date": "2020-03-22T00:00:00Z", "download_count": 11232},
- {"date": "2020-03-21T00:00:00Z", "download_count": 11894},
- {"date": "2020-03-20T00:00:00Z", "download_count": 14968},
- {"date": "2020-03-19T00:00:00Z", "download_count": 11017},
- {"date": "2020-03-18T00:00:00Z", "download_count": 5209},
- {"date": "2020-03-17T00:00:00Z", "download_count": 5759},
- {"date": "2020-03-16T00:00:00Z", "download_count": 4166},
- {"date": "2020-03-15T00:00:00Z", "download_count": 2145},
- {"date": "2020-03-14T00:00:00Z", "download_count": 2218},
- {"date": "2020-03-13T00:00:00Z", "download_count": 4609},
- {"date": "2020-03-12T00:00:00Z", "download_count": 5503},
- {"date": "2020-03-11T00:00:00Z", "download_count": 5412},
- {"date": "2020-03-10T00:00:00Z", "download_count": 6453},
- {"date": "2020-03-09T00:00:00Z", "download_count": 4798},
- {"date": "2020-03-08T00:00:00Z", "download_count": 2323},
- {"date": "2020-03-07T00:00:00Z", "download_count": 2332},
- {"date": "2020-03-06T00:00:00Z", "download_count": 4806},
- {"date": "2020-03-05T00:00:00Z", "download_count": 6339},
- {"date": "2020-03-04T00:00:00Z", "download_count": 5858},
- {"date": "2020-03-03T00:00:00Z", "download_count": 5579},
- {"date": "2020-03-02T00:00:00Z", "download_count": 8862},
- {"date": "2020-03-01T00:00:00Z", "download_count": 2119},
- {"date": "2020-02-29T00:00:00Z", "download_count": 2053},
- {"date": "2020-02-28T00:00:00Z", "download_count": 4735},
- {"date": "2020-02-27T00:00:00Z", "download_count": 6578},
- {"date": "2020-02-26T00:00:00Z", "download_count": 4954},
- {"date": "2020-02-25T00:00:00Z", "download_count": 5318}
- ],
- "top_10_module_versions": [
- {"module_version": "v0.3.2", "download_count": 232795},
- {"module_version": "v0.3.0", "download_count": 146009},
- {"module_version": "v0.3.1-0.20180807135948-17ff2d5776d2", "download_count": 67096},
- {"module_version": "v0.3.1-0.20181227161524-e6919f6577db", "download_count": 11494},
- {"module_version": "v0.0.0-20160726164857-2910a502d2bf", "download_count": 11223},
- {"module_version": "v0.0.0-20170915032832-14c0d48ead0c", "download_count": 3991},
- {"module_version": "v0.3.1-0.20171227012246-e19ae1496984", "download_count": 1128},
- {"module_version": "v0.0.0-20170915090833-1cbadb444a80", "download_count": 937},
- {"module_version": "v0.3.1-0.20181030141323-6f44c5a2ea40", "download_count": 480},
- {"module_version": "v0.3.1", "download_count": 353}
- ]
-}
- 示例请求 URL:goproxy.cn/stats/golang.org/x/text@v0.3.2
-示例响应主体:
-{
- "download_count": 232795,
- "last_30_days": [
- {"date": "2020-03-25T00:00:00Z", "download_count": 12852},
- {"date": "2020-03-24T00:00:00Z", "download_count": 12708},
- {"date": "2020-03-23T00:00:00Z", "download_count": 12602},
- {"date": "2020-03-22T00:00:00Z", "download_count": 10371},
- {"date": "2020-03-21T00:00:00Z", "download_count": 10673},
- {"date": "2020-03-20T00:00:00Z", "download_count": 11882},
- {"date": "2020-03-19T00:00:00Z", "download_count": 8379},
- {"date": "2020-03-18T00:00:00Z", "download_count": 2244},
- {"date": "2020-03-17T00:00:00Z", "download_count": 2407},
- {"date": "2020-03-16T00:00:00Z", "download_count": 1696},
- {"date": "2020-03-15T00:00:00Z", "download_count": 981},
- {"date": "2020-03-14T00:00:00Z", "download_count": 897},
- {"date": "2020-03-13T00:00:00Z", "download_count": 1898},
- {"date": "2020-03-12T00:00:00Z", "download_count": 2498},
- {"date": "2020-03-11T00:00:00Z", "download_count": 2374},
- {"date": "2020-03-10T00:00:00Z", "download_count": 2491},
- {"date": "2020-03-09T00:00:00Z", "download_count": 1854},
- {"date": "2020-03-08T00:00:00Z", "download_count": 800},
- {"date": "2020-03-07T00:00:00Z", "download_count": 981},
- {"date": "2020-03-06T00:00:00Z", "download_count": 2085},
- {"date": "2020-03-05T00:00:00Z", "download_count": 2642},
- {"date": "2020-03-04T00:00:00Z", "download_count": 2212},
- {"date": "2020-03-03T00:00:00Z", "download_count": 2515},
- {"date": "2020-03-02T00:00:00Z", "download_count": 2832},
- {"date": "2020-03-01T00:00:00Z", "download_count": 785},
- {"date": "2020-02-29T00:00:00Z", "download_count": 871},
- {"date": "2020-02-28T00:00:00Z", "download_count": 2019},
- {"date": "2020-02-27T00:00:00Z", "download_count": 2480},
- {"date": "2020-02-26T00:00:00Z", "download_count": 2163},
- {"date": "2020-02-25T00:00:00Z", "download_count": 2344}
- ]
-}
- 获取服务中指定模块的总下载次数徽章。
-GET /stats/<module-path>/badges/download-count.svg
- 路径参数 <module-path> 是必填的,如:golang.org/x/text。
示例请求 URL:goproxy.cn/stats/golang.org/x/text/badges/download-count.svg
-示例响应主体:
-可以通过如下 Markdown 语法将指定模块的总下载次数徽章放入项目的 README.md 中:
[](https://goproxy.cn)
-