Files
gluetun/internal/netlink/interfaces.go

20 lines
340 B
Go
Raw Normal View History

2022-12-02 11:26:52 +00:00
package netlink
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 {
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
}
type Firewall interface {
AcceptOutput(ctx context.Context, protocol, intf string, ip netip.Addr,
port uint16, remove bool) (err error)
}