storage

package
v0.0.0-...-48b1a76 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2022 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

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

func New

func New(filename string) (*Storage, error)

func (*Storage) GetBookmarks

func (s *Storage) GetBookmarks(ctx context.Context, id string) (*models.Bookmarks, error)

GetBookmarks retrieves encrypted Bookmarks with given id from database.

func (*Storage) SetBookmarks

func (s *Storage) SetBookmarks(ctx context.Context, b models.Bookmarks) error

SetBookmarks method stores given encrypted Bookmarks in database.

Jump to

Keyboard shortcuts

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