Files
ziti/controller/db/stores.go
T
2020-02-27 15:15:08 -05:00

25 lines
438 B
Go

package db
type Stores struct {
Router RouterStore
Service ServiceStore
}
type stores struct {
router *routerStoreImpl
service *serviceStoreImpl
}
func InitStores() *Stores {
internalStores := &stores{}
internalStores.router = newRouterStore(internalStores)
internalStores.service = newServiceStore(internalStores)
stores := &Stores{
Router: internalStores.router,
Service: internalStores.service,
}
return stores
}