fea: support list/add/del/save output (#48)

This commit is contained in:
buliangjun
2024-04-01 11:21:04 +08:00
committed by GitHub
parent bb611dad29
commit dbe58aa126
13 changed files with 320 additions and 47 deletions

View File

@@ -55,6 +55,12 @@ type Qoser interface {
Save()
}
type Outputer interface {
AddOutput(segment int, protocol, Remote string)
DelOutput(device string)
SaveOutput()
}
type Networker interface {
String() string
ID() string
@@ -70,6 +76,7 @@ type Networker interface {
Qoser() Qoser
IfAddr() string
ACLer() ACLer
Outputer
}
var workers = make(map[string]Networker)