store_browser

package
v0.0.0-...-32d88a2 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: MIT Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCheckedOutPool

func GetCheckedOutPool() interfaces.Pool[sku.CheckedOut, *sku.CheckedOut]

func GetExternalPool

func GetExternalPool() interfaces.Pool[sku.Transacted, *sku.Transacted]

Types

type Item

type Item struct {
	browser_items.Item
}

func (Item) GetDescription

func (i Item) GetDescription() (b descriptions.Description, err error)

func (*Item) GetExternalObjectId

func (i *Item) GetExternalObjectId() sku.ExternalObjectId

func (*Item) GetGenre

func (i *Item) GetGenre() interfaces.Genre

func (*Item) GetKey

func (i *Item) GetKey() string

func (*Item) GetObjectId

func (i *Item) GetObjectId() *ids.ObjectId

func (Item) GetTai

func (i Item) GetTai() (t ids.Tai, err error)

func (*Item) GetType

func (i *Item) GetType() (t ids.Type, err error)

func (Item) GetUrlPathTag

func (i Item) GetUrlPathTag() (e ids.Tag, err error)

TODO move below to !toml-bookmark type

func (*Item) ReadFromExternal

func (i *Item) ReadFromExternal(e *sku.Transacted) (err error)

func (*Item) String

func (i *Item) String() string

func (*Item) WriteToExternal

func (i *Item) WriteToExternal(e *sku.Transacted) (err error)

type Store

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

func Make

func Make(
	k *config.Compiled,
	s dir_layout.DirLayout,
	itemDeletedStringFormatWriter interfaces.FuncIter[*sku.CheckedOut],
) *Store

func (*Store) CheckoutOne

func (c *Store) CheckoutOne(
	options checkout_options.Options,
	tg sku.TransactedGetter,
) (cz sku.SkuType, err error)

func (*Store) DeleteCheckedOut

func (s *Store) DeleteCheckedOut(co *sku.CheckedOut) (err error)

func (*Store) Flush

func (s *Store) Flush() (err error)

func (*Store) GetExternalStoreLike

func (fs *Store) GetExternalStoreLike() external_store.StoreLike

func (*Store) GetObjectIdsForString

func (s *Store) GetObjectIdsForString(
	v string,
) (k []sku.ExternalObjectId, err error)

func (*Store) Initialize

func (s *Store) Initialize(esi external_store.Supplies) (err error)

func (*Store) QueryCheckedOut

func (c *Store) QueryCheckedOut(
	qg *query.Group,
	f interfaces.FuncIter[sku.SkuType],
) (err error)

func (*Store) ReadAllExternalItems

func (s *Store) ReadAllExternalItems() error

func (*Store) SaveBlob

func (s *Store) SaveBlob(e sku.ExternalLike) (err error)

TODO support updating bookmarks without overwriting. Maybe move to toml-bookmark type

func (*Store) UpdateCheckoutFromCheckedOut

func (s *Store) UpdateCheckoutFromCheckedOut(
	options checkout_options.OptionsWithoutMode,
	col sku.SkuType,
) (err error)

func (*Store) UpdateTransacted

func (s *Store) UpdateTransacted(sk *sku.Transacted) (err error)

TODO decide how this should behave

Jump to

Keyboard shortcuts

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