mirror of
https://github.com/documize/community.git
synced 2025-07-21 14:19:43 +02:00
Database and LDAP upgrades
Bumped underlying dependencies affecting database and LDAP connectivity. Bumped to Go v1.14.3 and released v3.8.0.
This commit is contained in:
parent
aaa8c3282d
commit
4fe022aa0c
310 changed files with 36835 additions and 16448 deletions
5
vendor/github.com/codegangsta/negroni/CHANGELOG.md
generated
vendored
5
vendor/github.com/codegangsta/negroni/CHANGELOG.md
generated
vendored
|
@ -4,6 +4,11 @@
|
|||
|
||||
## [Unreleased] -
|
||||
|
||||
## [1.0.0] - 2018-09-01
|
||||
|
||||
### Fixed
|
||||
- `Logger` middleware now correctly handles paths containing a `%` instead of trying to treat it as a format specifier
|
||||
|
||||
## [0.3.0] - 2017-11-11
|
||||
### Added
|
||||
- `With()` helper for building a new `Negroni` struct chaining handlers from
|
||||
|
|
7
vendor/github.com/codegangsta/negroni/README.md
generated
vendored
7
vendor/github.com/codegangsta/negroni/README.md
generated
vendored
|
@ -17,8 +17,8 @@ you think it contains too much magic, then Negroni is a great fit.
|
|||
Language Translations:
|
||||
* [Deutsch (de_DE)](translations/README_de_de.md)
|
||||
* [Português Brasileiro (pt_BR)](translations/README_pt_br.md)
|
||||
* [简体中文 (zh_cn)](translations/README_zh_CN.md)
|
||||
* [繁體中文 (zh_tw)](translations/README_zh_tw.md)
|
||||
* [简体中文 (zh_CN)](translations/README_zh_CN.md)
|
||||
* [繁體中文 (zh_TW)](translations/README_zh_tw.md)
|
||||
* [日本語 (ja_JP)](translations/README_ja_JP.md)
|
||||
* [Français (fr_FR)](translations/README_fr_FR.md)
|
||||
|
||||
|
@ -504,6 +504,7 @@ linking your middleware if you have built one:
|
|||
| [Graceful](https://github.com/tylerb/graceful) | [Tyler Bunnell](https://github.com/tylerb) | Graceful HTTP Shutdown |
|
||||
| [gzip](https://github.com/phyber/negroni-gzip) | [phyber](https://github.com/phyber) | GZIP response compression |
|
||||
| [JWT Middleware](https://github.com/auth0/go-jwt-middleware) | [Auth0](https://github.com/auth0) | Middleware checks for a JWT on the `Authorization` header on incoming requests and decodes it|
|
||||
| [JWT Middleware](https://github.com/mfuentesg/go-jwtmiddleware) | [Marcelo Fuentes](https://github.com/mfuentesg) | JWT middleware for golang |
|
||||
| [logrus](https://github.com/meatballhat/negroni-logrus) | [Dan Buch](https://github.com/meatballhat) | Logrus-based logger |
|
||||
| [oauth2](https://github.com/goincremental/negroni-oauth2) | [David Bochenski](https://github.com/bochenski) | oAuth2 middleware |
|
||||
| [onthefly](https://github.com/xyproto/onthefly) | [Alexander Rødseth](https://github.com/xyproto) | Generate TinySVG, HTML and CSS on the fly |
|
||||
|
@ -518,6 +519,8 @@ linking your middleware if you have built one:
|
|||
| [xrequestid](https://github.com/pilu/xrequestid) | [Andrea Franz](https://github.com/pilu) | Middleware that assigns a random X-Request-Id header to each request |
|
||||
| [mgo session](https://github.com/joeljames/nigroni-mgo-session) | [Joel James](https://github.com/joeljames) | Middleware that handles creating and closing mgo sessions per request |
|
||||
| [digits](https://github.com/bamarni/digits) | [Bilal Amarni](https://github.com/bamarni) | Middleware that handles [Twitter Digits](https://get.digits.com/) authentication |
|
||||
| [stats](https://github.com/guptachirag/stats) | [Chirag Gupta](https://github.com/guptachirag/stats) | Middleware that manages qps and latency stats for your endpoints and asynchronously flushes them to influx db |
|
||||
| [Chaos](https://github.com/falzm/chaos) | [Marc Falzon](https://github.com/falzm) | Middleware for injecting chaotic behavior into application in a programmatic way |
|
||||
|
||||
## Examples
|
||||
|
||||
|
|
14
vendor/github.com/codegangsta/negroni/logger.go
generated
vendored
14
vendor/github.com/codegangsta/negroni/logger.go
generated
vendored
|
@ -10,8 +10,7 @@ import (
|
|||
"time"
|
||||
)
|
||||
|
||||
// LoggerEntry is the structure
|
||||
// passed to the template.
|
||||
// LoggerEntry is the structure passed to the template.
|
||||
type LoggerEntry struct {
|
||||
StartTime string
|
||||
Status int
|
||||
|
@ -22,13 +21,10 @@ type LoggerEntry struct {
|
|||
Request *http.Request
|
||||
}
|
||||
|
||||
// LoggerDefaultFormat is the format
|
||||
// logged used by the default Logger instance.
|
||||
var LoggerDefaultFormat = "{{.StartTime}} | {{.Status}} | \t {{.Duration}} | {{.Hostname}} | {{.Method}} {{.Path}} \n"
|
||||
// LoggerDefaultFormat is the format logged used by the default Logger instance.
|
||||
var LoggerDefaultFormat = "{{.StartTime}} | {{.Status}} | \t {{.Duration}} | {{.Hostname}} | {{.Method}} {{.Path}}"
|
||||
|
||||
// LoggerDefaultDateFormat is the
|
||||
// format used for date by the
|
||||
// default Logger instance.
|
||||
// LoggerDefaultDateFormat is the format used for date by the default Logger instance.
|
||||
var LoggerDefaultDateFormat = time.RFC3339
|
||||
|
||||
// ALogger interface
|
||||
|
@ -78,5 +74,5 @@ func (l *Logger) ServeHTTP(rw http.ResponseWriter, r *http.Request, next http.Ha
|
|||
|
||||
buff := &bytes.Buffer{}
|
||||
l.template.Execute(buff, log)
|
||||
l.Printf(buff.String())
|
||||
l.Println(buff.String())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue