iptables

package
v0.0.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IIptablesService

type IIptablesService interface {
	Add(wgIface string, eth string) error
	Del(wgIface string, eth string) error
}

func NewApiService

func NewApiService() IIptablesService

func NewCmdService

func NewCmdService() IIptablesService

type IptablesApiService

type IptablesApiService struct{}

func (*IptablesApiService) Add

func (s *IptablesApiService) Add(wgIface string, eth string) error

func (*IptablesApiService) Del

func (s *IptablesApiService) Del(wgIface string, eth string) error

type IptablesCmdService

type IptablesCmdService struct{}

func (*IptablesCmdService) Add

func (s *IptablesCmdService) Add(wgIface string, eth string) error

func (*IptablesCmdService) Del

func (s *IptablesCmdService) Del(wgIface string, eth string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL