sql

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const SqliteDriverName = "sqlite"

Variables

This section is empty.

Functions

This section is empty.

Types

type Sqlite

type Sqlite struct {
	// contains filtered or unexported fields
}

func (*Sqlite) Delete

func (s *Sqlite) Delete(u *url.URL) error

func (*Sqlite) Insert

func (s *Sqlite) Insert(u *url.URL) error

func (*Sqlite) Select

func (s *Sqlite) Select() (*url.URL, float64, error)

type Storage

type Storage interface {
	// Insert logs a new reading record.
	Insert(*url.URL) error
	// Select gets the url with the lowest retrievability of memory.
	Select() (*url.URL, float64, error)
	// Delete will remove an url permanently from the storage.
	Delete(*url.URL) error
}

Jump to

Keyboard shortcuts

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