Documentation ¶
Overview ¶
Package db provides disk persistence functions
Index ¶
- func CurrentSession() (*session.Session, error)
- func DoHousekeeping()
- func EraseSession(uuid string) error
- func NthSession(n int) (*session.Session, error)
- func PreviousSession() (*session.Session, error)
- func ReadSession(uuid string) (*session.Session, error)
- func WriteSession(sess *session.Session) error
- type Index
- type SessionIndex
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrentSession ¶
func DoHousekeeping ¶
func DoHousekeeping()
erase old database records works based on configuration variables:
db.maxSessions db.maxReports
func EraseSession ¶
erase session from db - also updates index by removing relevant session metadata
func PreviousSession ¶
func ReadSession ¶
get session from db by uuid
func WriteSession ¶
save session to db - also updates index with session metadata
Types ¶
Click to show internal directories.
Click to hide internal directories.