diff options
author | Niall Sheridan <nsheridan@gmail.com> | 2018-06-20 22:39:07 +0100 |
---|---|---|
committer | Niall Sheridan <nsheridan@gmail.com> | 2018-06-20 22:39:07 +0100 |
commit | de6d2c524430287c699aaa898c1325da6afea539 (patch) | |
tree | f78eb841208d667668a7bc92a9290d693cc7103b /vendor/github.com/gorilla/sessions | |
parent | eb99016e1629e690e55633de6fc63a14c53e7ea2 (diff) |
Update dependencies
Diffstat (limited to 'vendor/github.com/gorilla/sessions')
-rw-r--r-- | vendor/github.com/gorilla/sessions/AUTHORS | 43 | ||||
-rw-r--r-- | vendor/github.com/gorilla/sessions/LICENSE | 2 | ||||
-rw-r--r-- | vendor/github.com/gorilla/sessions/README.md | 4 | ||||
-rw-r--r-- | vendor/github.com/gorilla/sessions/doc.go | 2 | ||||
-rw-r--r-- | vendor/github.com/gorilla/sessions/go.mod | 6 | ||||
-rw-r--r-- | vendor/github.com/gorilla/sessions/sessions.go | 12 |
6 files changed, 61 insertions, 8 deletions
diff --git a/vendor/github.com/gorilla/sessions/AUTHORS b/vendor/github.com/gorilla/sessions/AUTHORS new file mode 100644 index 0000000..1e3e7ac --- /dev/null +++ b/vendor/github.com/gorilla/sessions/AUTHORS @@ -0,0 +1,43 @@ +# This is the official list of gorilla/sessions authors for copyright purposes. +# +# Please keep the list sorted. + +Ahmadreza Zibaei <ahmadrezazibaei@hotmail.com> +Anton Lindström <lindztr@gmail.com> +Brian Jones <mojobojo@gmail.com> +Collin Stedman <kronion@users.noreply.github.com> +Deniz Eren <dee.116@gmail.com> +Dmitry Chestnykh <dmitry@codingrobots.com> +Dustin Oprea <myselfasunder@gmail.com> +Egon Elbre <egonelbre@gmail.com> +enumappstore <appstore@enumapps.com> +Geofrey Ernest <geofreyernest@live.com> +Google LLC (https://opensource.google.com/) +Jerry Saravia <SaraviaJ@gmail.com> +Jonathan Gillham <jonathan.gillham@gamil.com> +Justin Clift <justin@postgresql.org> +Justin Hellings <justin.hellings@gmail.com> +Kamil Kisiel <kamil@kamilkisiel.net> +Keiji Yoshida <yoshida.keiji.84@gmail.com> +kliron <kliron@gmail.com> +Kshitij Saraogi <KshitijSaraogi@gmail.com> +Lauris BH <lauris@nix.lv> +Lukas Rist <glaslos@gmail.com> +Mark Dain <ancarda@users.noreply.github.com> +Matt Ho <matt.ho@gmail.com> +Matt Silverlock <matt@eatsleeprepeat.net> +Mattias Wadman <mattias.wadman@gmail.com> +Michael Schuett <michaeljs1990@gmail.com> +Michael Stapelberg <stapelberg@users.noreply.github.com> +Mirco Zeiss <mirco.zeiss@gmail.com> +moraes <rodrigo.moraes@gmail.com> +nvcnvn <nguyen@open-vn.org> +pappz <zoltan.pmail@gmail.com> +Pontus Leitzler <leitzler@users.noreply.github.com> +QuaSoft <info@quasoft.net> +rcadena <robert.cadena@gmail.com> +rodrigo moraes <rodrigo.moraes@gmail.com> +Shawn Smith <shawnpsmith@gmail.com> +Taylor Hurt <taylor.a.hurt@gmail.com> +Tortuoise <sanyasinp@gmail.com> +Vitor De Mario <vitordemario@gmail.com> diff --git a/vendor/github.com/gorilla/sessions/LICENSE b/vendor/github.com/gorilla/sessions/LICENSE index 0e5fb87..6903df6 100644 --- a/vendor/github.com/gorilla/sessions/LICENSE +++ b/vendor/github.com/gorilla/sessions/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2012 Rodrigo Moraes. All rights reserved. +Copyright (c) 2012-2018 The Gorilla Authors. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are diff --git a/vendor/github.com/gorilla/sessions/README.md b/vendor/github.com/gorilla/sessions/README.md index 10eb7f0..c9e0e92 100644 --- a/vendor/github.com/gorilla/sessions/README.md +++ b/vendor/github.com/gorilla/sessions/README.md @@ -1,6 +1,6 @@ sessions ======== -[![GoDoc](https://godoc.org/github.com/gorilla/sessions?status.svg)](https://godoc.org/github.com/gorilla/sessions) [![Build Status](https://travis-ci.org/gorilla/sessions.png?branch=master)](https://travis-ci.org/gorilla/sessions) +[![GoDoc](https://godoc.org/github.com/gorilla/sessions?status.svg)](https://godoc.org/github.com/gorilla/sessions) [![Build Status](https://travis-ci.org/gorilla/sessions.svg?branch=master)](https://travis-ci.org/gorilla/sessions) [![Sourcegraph](https://sourcegraph.com/github.com/gorilla/sessions/-/badge.svg)](https://sourcegraph.com/github.com/gorilla/sessions?badge) @@ -84,6 +84,8 @@ Other implementations of the `sessions.Store` interface: * [github.com/michaeljs1990/sqlitestore](https://github.com/michaeljs1990/sqlitestore) - SQLite * [github.com/wader/gormstore](https://github.com/wader/gormstore) - GORM (MySQL, PostgreSQL, SQLite) * [github.com/gernest/qlstore](https://github.com/gernest/qlstore) - ql +* [github.com/quasoft/memstore](https://github.com/quasoft/memstore) - In-memory implementation for use in unit tests +* [github.com/lafriks/xormstore](https://github.com/lafriks/xormstore) - XORM (MySQL, PostgreSQL, SQLite, Microsoft SQL Server, TiDB) ## License diff --git a/vendor/github.com/gorilla/sessions/doc.go b/vendor/github.com/gorilla/sessions/doc.go index 591d932..57a5291 100644 --- a/vendor/github.com/gorilla/sessions/doc.go +++ b/vendor/github.com/gorilla/sessions/doc.go @@ -79,7 +79,7 @@ flashes, call session.Flashes(). Here is an example: return } - // Get the previously flashes, if any. + // Get the previous flashes, if any. if flashes := session.Flashes(); len(flashes) > 0 { // Use the flash values. } else { diff --git a/vendor/github.com/gorilla/sessions/go.mod b/vendor/github.com/gorilla/sessions/go.mod new file mode 100644 index 0000000..44befd4 --- /dev/null +++ b/vendor/github.com/gorilla/sessions/go.mod @@ -0,0 +1,6 @@ +module "github.com/gorilla/sessions" + +require ( + "github.com/gorilla/context" v1.1.1 + "github.com/gorilla/securecookie" v1.1.1 +) diff --git a/vendor/github.com/gorilla/sessions/sessions.go b/vendor/github.com/gorilla/sessions/sessions.go index fe0d2bc..9870e31 100644 --- a/vendor/github.com/gorilla/sessions/sessions.go +++ b/vendor/github.com/gorilla/sessions/sessions.go @@ -24,8 +24,9 @@ const flashesKey = "_flash" type Options struct { Path string Domain string - // MaxAge=0 means no 'Max-Age' attribute specified. - // MaxAge<0 means delete cookie now, equivalently 'Max-Age: 0'. + // MaxAge=0 means no Max-Age attribute specified and the cookie will be + // deleted after the browser session ends. + // MaxAge<0 means delete cookie immediately. // MaxAge>0 means Max-Age attribute present and given in seconds. MaxAge int Secure bool @@ -37,9 +38,10 @@ type Options struct { // NewSession is called by session stores to create a new session instance. func NewSession(store Store, name string) *Session { return &Session{ - Values: make(map[interface{}]interface{}), - store: store, - name: name, + Values: make(map[interface{}]interface{}), + store: store, + name: name, + Options: new(Options), } } |