Semaphore/models/Session.go
Matej Kramny b2eb39d605 🎉 remove redis dependency
- Remove mandrill
- Remove redis
- Sessions & more transparency into who's logged into your user
- Session is stored in cookies (map of two integers.)
- Encrypted sessions, configurable keys (auto-generated)
2016-04-30 14:28:47 +02:00

14 lines
413 B
Go

package models
import "time"
type Session struct {
ID int `db:"id" json:"id"`
UserID int `db:"user_id" json:"user_id"`
Created time.Time `db:"created" json:"created"`
LastActive time.Time `db:"last_active" json:"last_active"`
IP string `db:"ip" json:"ip"`
UserAgent string `db:"user_agent" json:"user_agent"`
Expired bool `db:"expired" json:"expired"`
}