storage

package
v0.0.0-...-90f0473 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

internal/storage/sqlite.go

internal/storage/storage.go

Index

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) LoadTab

func (s *SQLiteStorage) LoadTab(id int) (*models.Tab, error)

func (*SQLiteStorage) SaveTab

func (s *SQLiteStorage) SaveTab(tab *models.Tab) error

func (*SQLiteStorage) SearchTabs

func (s *SQLiteStorage) SearchTabs(query string) ([]models.Tab, error)

type Storage

type Storage interface {
	SaveTab(tab *models.Tab) error
	LoadTab(id int) (*models.Tab, error)
	LoadAllTabs() ([]models.Tab, error)
	DeleteTab(id int) error
	SearchTabs(query string) ([]models.Tab, error)
}

Jump to

Keyboard shortcuts

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