11 lines
215 B
Go
11 lines
215 B
Go
package portforward
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
type PortAllower interface {
|
|
SetAllowedPort(ctx context.Context, port uint16, intf string) (err error)
|
|
RemoveAllowedPort(ctx context.Context, port uint16) (err error)
|
|
}
|