mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
Update dependencies (#333)
This commit is contained in:
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]
|
||||
}
|
||||
|
Reference in New Issue
Block a user