mirror of
https://github.com/openziti/ziti.git
synced 2026-10-13 23:59:53 +00:00
25 lines
438 B
Go
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
|
|
}
|