command

package
v0.0.0-...-b35749e Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Add

type Add struct {
	// contains filtered or unexported fields
}

func AddNew

func AddNew(
	clientAddr netip.Addr,
	port uint16,
	protocol firewallField.ProtocolType,
	comment string,
	placeBefore uint64,
) Add

func (Add) GetRule

func (ctx Add) GetRule() firewallCommon.FirewallRule

func (Add) GetType

func (ctx Add) GetType() device.DeviceCommandType

func (Add) ToMap

func (ctx Add) ToMap() map[string]interface{}

type Get

type Get struct {
	// contains filtered or unexported fields
}

func GetNew

func GetNew() Get

func (Get) GetType

func (ctx Get) GetType() device.DeviceCommandType

func (Get) ToMap

func (ctx Get) ToMap() map[string]interface{}

type Remove

type Remove struct {
	// contains filtered or unexported fields
}

func RemoveNew

func RemoveNew(id uint64) Remove

func (Remove) GetId

func (ctx Remove) GetId() uint64

func (Remove) GetType

func (ctx Remove) GetType() device.DeviceCommandType

func (Remove) ToMap

func (ctx Remove) ToMap() map[string]interface{}

Jump to

Keyboard shortcuts

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