Files
openlan/pkg/cache/store.go
2022-07-29 23:38:54 +08:00

22 lines
347 B
Go
Executable File

package cache
import (
"github.com/luscis/openlan/pkg/config"
)
func Init(cfg *config.Perf) {
Point.Init(cfg.Point)
Link.Init(cfg.Link)
Neighbor.Init(cfg.Neighbor)
Online.Init(cfg.OnLine)
User.Init(cfg.User)
Esp.Init(cfg.Esp)
EspState.Init(cfg.State)
EspPolicy.Init(cfg.Policy)
}
func Reload() {
EspState.Clear()
EspPolicy.Clear()
}