mirror of
https://codeberg.org/cunicu/cunicu.git
synced 2025-12-24 06:18:40 +08:00
21 lines
258 B
Go
21 lines
258 B
Go
package intf
|
|
|
|
import (
|
|
"io"
|
|
|
|
"golang.zx2c4.com/wireguard/wgctrl/wgtypes"
|
|
)
|
|
|
|
type Interface interface {
|
|
io.Closer
|
|
|
|
DumpConfig(io.Writer)
|
|
|
|
AddPeer(peer wgtypes.Key) error
|
|
RemovePeer(peer wgtypes.Key) error
|
|
|
|
Sync(*wgtypes.Device) error
|
|
|
|
Name() string
|
|
}
|