2022-12-02 11:26:52 +00:00
|
|
|
package netlink
|
|
|
|
|
|
2024-12-12 06:48:43 +00:00
|
|
|
import (
|
|
|
|
|
"context"
|
|
|
|
|
"net/netip"
|
|
|
|
|
|
|
|
|
|
"github.com/qdm12/log"
|
|
|
|
|
)
|
2022-12-14 11:50:36 +00:00
|
|
|
|
2022-12-02 11:26:52 +00:00
|
|
|
type DebugLogger interface {
|
2024-10-19 12:43:26 +00:00
|
|
|
Debug(message string)
|
2022-12-02 11:26:52 +00:00
|
|
|
Debugf(format string, args ...any)
|
2022-12-14 11:50:36 +00:00
|
|
|
Patch(options ...log.Option)
|
2022-12-02 11:26:52 +00:00
|
|
|
}
|
2024-12-12 06:48:43 +00:00
|
|
|
|
|
|
|
|
type Firewall interface {
|
|
|
|
|
AcceptOutput(ctx context.Context, protocol, intf string, ip netip.Addr,
|
|
|
|
|
port uint16, remove bool) (err error)
|
|
|
|
|
}
|