mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-12-04 23:31:05 +01:00
17fa7bb407
extract some error checking and logging in places where linting needed or errors not checked
15 lines
447 B
Go
15 lines
447 B
Go
package db
|
|
|
|
import "time"
|
|
|
|
// Session is a connection to the API
|
|
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"`
|
|
}
|