top

Package store implements the handling of websites, groups and stores.

The following shows a hierarchical diagram of the structure:

   +---------------------+
   |  Website            |
   |   ID     <-----------------+---+
   |   Code              |      |   |
+----+ Default Group ID  |      |   |
|  |   Is Default        |      |   |
|  +---------------------+      |   |
|                               |   |
|    +----------------------+   |   |
|    |  Group               |   |   |
+------> ID                 |   |   |
     |   Website ID +-----------+   |
     |   Root Category ID   |       |
+------+ Default Store ID   |       |
|    +----------------------+       |
|                                   |
|      +---------------+            |
|      |  Store        |            |
|      |   ID          |            |
|      |   Code        |            |
+--------> Group ID    |            |
       |   Website ID +-------------+
       |   Is Active   |
       +---------------+
http://asciiflow.com

Those three objects also represents the tables in the database.

Sub package Scope

The subpackage scope depends on these structure except that the group has been removed and a default scope has been introduced.

More explanation @todo Read more: http://magento-quickies.alanstorm.com/post/146610004255/taming-magento-2s-scope https://cyrillschumacher.com/2015/04/20/magento2-stores-and-scopes/

Imported by 14 package(s)

  1. github.com/bom-d-van/csfw/codegen/materialization
  2. github.com/corestoreio/csfw/codegen/materialization
  3. github.com/corestoreio/csfw/net/auth
  4. github.com/corestoreio/csfw/net/runmode
  5. github.com/corestoreio/csfw/store/storemock
  6. github.com/corestoreio/csms/store
  7. github.com/magicshui/csfw/codegen/materialization
  8. github.com/magicshui/csfw/net/auth
  9. github.com/magicshui/csfw/net/cors
  10. github.com/magicshui/csfw/net/geoip
  11. github.com/magicshui/csfw/net/jwt
  12. github.com/magicshui/csfw/net/ratelimit
  13. github.com/magicshui/csfw/store/storemock
  14. github.com/magicshui/csfw/store/storenet

Imported only in test by 8 package(s)

  1. github.com/bom-d-van/csfw/store
  2. github.com/corestoreio/csfw/config
  3. github.com/corestoreio/csfw/net/auth/backendauth
  4. github.com/corestoreio/csfw/net/geoip
  5. github.com/corestoreio/csfw/net/jwt
  6. github.com/elvuel/csfw/store
  7. github.com/magicshui/csfw/config
  8. github.com/magicshui/csfw/store

Imports 14 package(s)

  1. github.com/corestoreio/csfw/storage/dbr
  2. github.com/coreos/etcd/mvcc/backend
  3. github.com/corestoreio/csfw/storage/csdb
  4. github.com/corestoreio/csfw/config/cfgmock
  5. github.com/stretchr/testify/assert
  6. github.com/corestoreio/csfw/config/cfgpath
  7. github.com/corestoreio/csfw/store/scope
  8. github.com/gocraft/dbr
  9. github.com/corestoreio/csfw/log
  10. golang.org/x/sync/errgroup
  11. github.com/corestoreio/csfw/config
  12. github.com/corestoreio/csfw/util/errors
  13. github.com/corestoreio/csfw/util
  14. github.com/corestoreio/csfw/config/cfgmodel

Test imports 5 package(s)

  1. github.com/corestoreio/csfw/config/element
  2. github.com/corestoreio/csfw/util/slices
  3. github.com/corestoreio/csfw/log/logw
  4. github.com/corestoreio/csfw/util/cstesting
  5. github.com/corestoreio/csfw/store/storemock