storage

package
v0.0.0-...-f98b078 Latest Latest
Warning

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

Go to latest
Published: May 1, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoSavedPages = errors.New("no saved pages")

Functions

This section is empty.

Types

type Page

type Page struct {
	URL      string
	UserName string
}

func (Page) Hash

func (p Page) Hash() (string, error)

type Storage

type Storage interface {
	IsExists(page *Page) (bool, error)
	PickRandom(userName string) (*Page, error)
	Remove(page *Page) error
	Save(page *Page) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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