database

package
v0.0.0-...-1a49654 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoSavedNotes = errors.New("no saved notes")

Functions

This section is empty.

Types

type DataBase

type DataBase interface {
	Save(ctx context.Context, p *Page) error
	Remove(ctx context.Context, p *Page) error
	IsExists(ctx context.Context, p *Page) (bool, error)
}

type Page

type Page struct {
	URL      string
	UserName string
}

func (Page) Hash

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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