20 lines
389 B
Go
20 lines
389 B
Go
package navi
|
|
|
|
import "git.solsynth.dev/goatworks/roadsign/pkg/warden"
|
|
|
|
func InitializeWarden(regions []*Region) {
|
|
pool := make([]*warden.AppInstance, 0)
|
|
|
|
for _, region := range regions {
|
|
for _, application := range region.Applications {
|
|
pool = append(pool, &warden.AppInstance{
|
|
Manifest: application,
|
|
})
|
|
}
|
|
}
|
|
|
|
// Hot swap
|
|
warden.InstancePool = pool
|
|
warden.StartPool()
|
|
}
|