mongo

package
v0.0.0-...-c808a40 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CatalogStoreMongo

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

func NewCatalogStore

func NewCatalogStore(database *mongo.Database) *CatalogStoreMongo

func (*CatalogStoreMongo) CreateCatalog

func (c *CatalogStoreMongo) CreateCatalog(catalog *domain.Catalog) (interface{}, error)

func (*CatalogStoreMongo) CreateControl

func (store *CatalogStoreMongo) CreateControl(catalogId string, control *domain.Control) (interface{}, error)

func (*CatalogStoreMongo) DeleteCatalog

func (store *CatalogStoreMongo) DeleteCatalog(id string) error

func (*CatalogStoreMongo) GetCatalog

func (store *CatalogStoreMongo) GetCatalog(id string) (*domain.Catalog, error)

func (*CatalogStoreMongo) GetControl

func (store *CatalogStoreMongo) GetControl(catalogId string, controlId string) (*domain.Control, error)

func (*CatalogStoreMongo) UpdateCatalog

func (store *CatalogStoreMongo) UpdateCatalog(id string, catalog *domain.Catalog) error

func (*CatalogStoreMongo) UpdateControl

func (store *CatalogStoreMongo) UpdateControl(catalogId string, controlId string, control *domain.Control) (*domain.Catalog, error)

Jump to

Keyboard shortcuts

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