Documentation
¶
Overview ¶
internal/storage/sqlite.go
internal/storage/storage.go
Index ¶
- type SQLiteStorage
- func (s *SQLiteStorage) Close() error
- func (s *SQLiteStorage) DeleteTab(id int) error
- func (s *SQLiteStorage) LoadAllTabs() ([]models.Tab, error)
- func (s *SQLiteStorage) LoadTab(id int) (*models.Tab, error)
- func (s *SQLiteStorage) SaveTab(tab *models.Tab) error
- func (s *SQLiteStorage) SearchTabs(query string) ([]models.Tab, error)
- type Storage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SQLiteStorage ¶
type SQLiteStorage struct {
// contains filtered or unexported fields
}
func NewSQLiteStorage ¶
func NewSQLiteStorage(dbPath string) (*SQLiteStorage, error)
func (*SQLiteStorage) Close ¶
func (s *SQLiteStorage) Close() error
func (*SQLiteStorage) DeleteTab ¶
func (s *SQLiteStorage) DeleteTab(id int) error
func (*SQLiteStorage) LoadAllTabs ¶
func (s *SQLiteStorage) LoadAllTabs() ([]models.Tab, error)
func (*SQLiteStorage) SearchTabs ¶
func (s *SQLiteStorage) SearchTabs(query string) ([]models.Tab, error)
Click to show internal directories.
Click to hide internal directories.