Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewIPFilterRule ¶
func NewIPFilterRule() *ipFilterRule
Types ¶
type IPFilterRule ¶
type IPFilterRule interface { // initial structure //Init() error // Set action of IPFilterRule SetAction(bool) error // Set Direction of IPFilterRule SetDirection(bool) error // Set Protocol of IPFilterRule // 0xfc stand for ip (any) SetProtocal(int) error // Set Source IP of IPFilterRule // format: IP or IP/mask or "any" SetSourceIp(string) error // Set Source port of IPFilterRule // format: {port/port-port}[,ports[,...]] SetSourcePorts(string) error // Set Destination IP of IPFilterRule // format: IP or IP/mask or "assigned" SetDestinationIp(string) error // Set Destination port of IPFilterRule // format: {port/port-port}[,ports[,...]] SetDestinationPorts(string) error // Encode the IPFilterRule Encode() (string, error) // Decode the IPFilterRule Decode() error }
Click to show internal directories.
Click to hide internal directories.