Session should expose the Sessions's end-user API. It is the session's storage controller which you can save or retrieve values based on a key. This is what will be returned when sess := sessions.Start().
| 15 | // |
| 16 | // This is what will be returned when sess := sessions.Start(). |
| 17 | Session struct { |
| 18 | sid string |
| 19 | isNew bool |
| 20 | flashes map[string]*flashMessage |
| 21 | mu sync.RWMutex // for flashes. |
| 22 | // Lifetime it contains the expiration data, use it for read-only information. |
| 23 | // See `Sessions.UpdateExpiration` too. |
| 24 | Lifetime *memstore.LifeTime |
| 25 | // Man is the sessions manager that this session created of. |
| 26 | Man *Sessions |
| 27 | |
| 28 | provider *provider |
| 29 | } |
| 30 | |
| 31 | flashMessage struct { |
| 32 | // if true then this flash message is removed on the flash gc |
nothing calls this directly
no outgoing calls
no test coverage detected