mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-17 13:03:00 -06:00
Update dependencies (#333)
This commit is contained in:
parent
ce22e03f9d
commit
182b4eea73
848 changed files with 377869 additions and 107280 deletions
6
vendor/github.com/gin-contrib/sessions/sessions.go
generated
vendored
6
vendor/github.com/gin-contrib/sessions/sessions.go
generated
vendored
|
|
@ -22,6 +22,8 @@ type Store interface {
|
|||
// Wraps thinly gorilla-session methods.
|
||||
// Session stores the values and optional configuration for a session.
|
||||
type Session interface {
|
||||
// ID of the session, generated by stores. It should not be used for user data.
|
||||
ID() string
|
||||
// Get returns the session value associated to the given key.
|
||||
Get(key interface{}) interface{}
|
||||
// Set sets the session value associated to the given key.
|
||||
|
|
@ -74,6 +76,10 @@ type session struct {
|
|||
writer http.ResponseWriter
|
||||
}
|
||||
|
||||
func (s *session) ID() string {
|
||||
return s.Session().ID
|
||||
}
|
||||
|
||||
func (s *session) Get(key interface{}) interface{} {
|
||||
return s.Session().Values[key]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue