storage

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2025 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

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

func (s *SQLiteStorage) Delete(id int64) error

func (*SQLiteStorage) GetAllURLs

func (s *SQLiteStorage) GetAllURLs() ([]string, error)

func (*SQLiteStorage) Load

func (s *SQLiteStorage) Load() ([]http.Request, error)

func (*SQLiteStorage) Save

func (s *SQLiteStorage) Save(request *http.Request) error

type Storage

type Storage interface {
	Save(requests *http.Request) error
	Load() ([]http.Request, error)
	Delete(id int64) error
	GetAllURLs() ([]string, error)
}

Jump to

Keyboard shortcuts

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