mirror of
https://github.com/gogs/gogs.git
synced 2025-09-04 19:37:58 +00:00
vendor: update github.com/go-macaron/toolbox (#2857)
Support HEAD requests of '/healthcheck' for service monitoring.
This commit is contained in:
parent
2322de653c
commit
0bef74d499
@ -92,7 +92,7 @@ func checkVersion() {
|
|||||||
{"github.com/go-macaron/csrf", csrf.Version, "0.1.0"},
|
{"github.com/go-macaron/csrf", csrf.Version, "0.1.0"},
|
||||||
{"github.com/go-macaron/i18n", i18n.Version, "0.3.0"},
|
{"github.com/go-macaron/i18n", i18n.Version, "0.3.0"},
|
||||||
{"github.com/go-macaron/session", session.Version, "0.1.6"},
|
{"github.com/go-macaron/session", session.Version, "0.1.6"},
|
||||||
{"github.com/go-macaron/toolbox", toolbox.Version, "0.1.0"},
|
{"github.com/go-macaron/toolbox", toolbox.Version, "0.1.3"},
|
||||||
{"gopkg.in/ini.v1", ini.Version, "1.8.4"},
|
{"gopkg.in/ini.v1", ini.Version, "1.8.4"},
|
||||||
{"gopkg.in/macaron.v1", macaron.Version, "1.1.7"},
|
{"gopkg.in/macaron.v1", macaron.Version, "1.1.7"},
|
||||||
{"github.com/gogits/git-module", git.Version, "0.4.12"},
|
{"github.com/gogits/git-module", git.Version, "0.4.12"},
|
||||||
|
4
vendor/github.com/go-macaron/toolbox/toolbox.go
generated
vendored
4
vendor/github.com/go-macaron/toolbox/toolbox.go
generated
vendored
@ -26,7 +26,7 @@ import (
|
|||||||
"gopkg.in/macaron.v1"
|
"gopkg.in/macaron.v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
const _VERSION = "0.1.2"
|
const _VERSION = "0.1.3"
|
||||||
|
|
||||||
func Version() string {
|
func Version() string {
|
||||||
return _VERSION
|
return _VERSION
|
||||||
@ -125,7 +125,7 @@ func Toolboxer(m *macaron.Macaron, options ...Options) macaron.Handler {
|
|||||||
for _, fd := range opt.HealthCheckFuncs {
|
for _, fd := range opt.HealthCheckFuncs {
|
||||||
t.AddHealthCheckFunc(fd.Desc, fd.Func)
|
t.AddHealthCheckFunc(fd.Desc, fd.Func)
|
||||||
}
|
}
|
||||||
m.Get(opt.HealthCheckURL, t.handleHealthCheck)
|
m.Route(opt.HealthCheckURL, "HEAD,GET", t.handleHealthCheck)
|
||||||
|
|
||||||
// URL map.
|
// URL map.
|
||||||
m.Get(opt.URLMapPrefix, func(rw http.ResponseWriter) {
|
m.Get(opt.URLMapPrefix, func(rw http.ResponseWriter) {
|
||||||
|
6
vendor/vendor.json
vendored
6
vendor/vendor.json
vendored
@ -117,10 +117,10 @@
|
|||||||
"revisionTime": "2015-10-14T03:41:01Z"
|
"revisionTime": "2015-10-14T03:41:01Z"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"checksumSHA1": "YAbqrTZNQv3/Jch5p1nJX6wHBaw=",
|
"checksumSHA1": "VMRkwnbl0mKWWvK/62CnIlv1oOg=",
|
||||||
"path": "github.com/go-macaron/toolbox",
|
"path": "github.com/go-macaron/toolbox",
|
||||||
"revision": "99a42f20e9e88daec5c0d7beb4e7eac134680ab0",
|
"revision": "6766b8f16d1b135b250f09ba4dc4e24ab65b1107",
|
||||||
"revisionTime": "2016-06-12T10:09:30Z"
|
"revisionTime": "2017-02-20T18:37:56Z"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"checksumSHA1": "jEXpLrWXoQvH/zk1lW5Si0swr6Y=",
|
"checksumSHA1": "jEXpLrWXoQvH/zk1lW5Si0swr6Y=",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user