Documentation ¶
Index ¶
- type CatalogStoreMongo
- func (c *CatalogStoreMongo) CreateCatalog(catalog *domain.Catalog) (interface{}, error)
- func (store *CatalogStoreMongo) CreateControl(catalogId string, control *domain.Control) (interface{}, error)
- func (store *CatalogStoreMongo) DeleteCatalog(id string) error
- func (store *CatalogStoreMongo) GetCatalog(id string) (*domain.Catalog, error)
- func (store *CatalogStoreMongo) GetControl(catalogId string, controlId string) (*domain.Control, error)
- func (store *CatalogStoreMongo) UpdateCatalog(id string, catalog *domain.Catalog) error
- func (store *CatalogStoreMongo) UpdateControl(catalogId string, controlId string, control *domain.Control) (*domain.Catalog, error)
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 (*CatalogStoreMongo) UpdateCatalog ¶
func (store *CatalogStoreMongo) UpdateCatalog(id string, catalog *domain.Catalog) error
func (*CatalogStoreMongo) UpdateControl ¶
Click to show internal directories.
Click to hide internal directories.