mirror of
https://github.com/luscis/openlan.git
synced 2025-10-07 01:22:51 +08:00
22 lines
347 B
Go
Executable File
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()
|
|
}
|