storage

package
v0.0.0-...-ae48b6f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 26, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSession

func CreateSession(db *sql.DB, name string) (int64, error)

func DeleteSession

func DeleteSession(db *sql.DB, id int64)

func EndSession

func EndSession(db *sql.DB, id int64)

func GetCommands

func GetCommands(db *sql.DB, sessionID int64) ([]models.Command, error)

func GetHighlights

func GetHighlights(db *sql.DB, sessionID int64) ([]models.Command, error)

func GetLatestSession

func GetLatestSession(db *sql.DB) (*models.Session, error)

func GetMarks

func GetMarks(db *sql.DB, sessionID int64) ([]models.Command, error)

func GetSession

func GetSession(db *sql.DB, id int64) (*models.Session, error)

func ListSessions

func ListSessions(db *sql.DB) ([]models.Session, error)

func MarkCommand

func MarkCommand(db *sql.DB, id int64, tag string)

func Open

func Open() (*sql.DB, error)

func SaveCommand

func SaveCommand(db *sql.DB, cmd *models.Command) (int64, error)

func SearchCommands

func SearchCommands(db *sql.DB, sessionID int64, q string) ([]models.Command, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL