localstorage

package
v0.0.0-...-03f6f9a Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContentItem

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

func NewContentItem

func NewContentItem(storage *LocalStorage, id string) *ContentItem

func (*ContentItem) Config

func (ci *ContentItem) Config() *config.Book

func (*ContentItem) ContentMetadata

func (ci *ContentItem) ContentMetadata() (*dodp.ContentMetadata, error)

func (*ContentItem) ID

func (ci *ContentItem) ID() string

func (*ContentItem) Label

func (ci *ContentItem) Label() string

func (*ContentItem) Name

func (ci *ContentItem) Name() (string, error)

func (*ContentItem) Resources

func (ci *ContentItem) Resources() ([]dodp.Resource, error)

func (*ContentItem) SaveConfig

func (ci *ContentItem) SaveConfig()

type LocalStorage

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

func NewLocalStorage

func NewLocalStorage(conf *config.Config) *LocalStorage

func (*LocalStorage) ContentItem

func (s *LocalStorage) ContentItem(id string) (content.Item, error)

func (*LocalStorage) ContentList

func (s *LocalStorage) ContentList(string) (*content.List, error)

func (*LocalStorage) LastContentItemID

func (s *LocalStorage) LastContentItemID() (string, error)

func (*LocalStorage) LastContentListID

func (s *LocalStorage) LastContentListID() (string, error)

func (*LocalStorage) Tidy

func (s *LocalStorage) Tidy(ids []string)

Jump to

Keyboard shortcuts

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