inventorystorage_boltdb

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func New

func New(
	ctx context.Context,
	path string,
	l interfaces.Logger,
) (*Service, error)

func (*Service) CreateEntity

func (i *Service) CreateEntity(entity interfaces.Entity) error

func (*Service) CreateInventory

func (i *Service) CreateInventory(inv interfaces.Inventory) error

func (*Service) DeleteEntity

func (i *Service) DeleteEntity(ID string) error

func (*Service) DeleteInventory

func (i *Service) DeleteInventory(ID string) error

func (*Service) ReadAllEntities

func (i *Service) ReadAllEntities() ([]interfaces.Entity, error)

func (*Service) ReadAllInventories

func (i *Service) ReadAllInventories() ([]interfaces.Inventory, error)

func (*Service) ReadEntity

func (i *Service) ReadEntity(ID string) (interfaces.Entity, error)

func (*Service) ReadInventory

func (i *Service) ReadInventory(ID string) (interfaces.Inventory, error)

func (*Service) UpdateEntity

func (i *Service) UpdateEntity(entity interfaces.Entity) error

func (*Service) UpdateInventory

func (i *Service) UpdateInventory(inv interfaces.Inventory) error

Jump to

Keyboard shortcuts

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