Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnsupportedAddress = errors.New("unsupported address") ErrIllegalAddress = errors.New("illegal address") ErrChainRequired = errors.New("chain required") ErrCommandRequired = errors.New("command required") ErrRulenumMustNot0 = errors.New("rulenum mustn't be 0") ErrChainLineTooShort = errors.New("chain line too short") ErrChainAttrsNotRecognized = errors.New("chain attrs not recognized") ErrArgs = errors.New("wrong args") ErrTargetNotFound = errors.New("target not found") ErrMatchParams = errors.New("illegal match params") ErrWatcherParams = errors.New("illegal watcher params") ErrTargetParams = errors.New("illegal target params") ErrAtLeastOneOptionRequired = errors.New("at least one option required") ErrTargetParseFailed = errors.New("target parse failed") ErrIllegalTargetType = errors.New("illegal target type") ErrArgsWithoutMAC = errors.New("args without mac address") )
Functions ¶
func ErrAndStdErr ¶
Types ¶
type CommandError ¶
func (*CommandError) Error ¶
func (ce *CommandError) Error() string
func (*CommandError) IsRuleNotExistError ¶
func (ce *CommandError) IsRuleNotExistError() bool
type Daytime ¶
func ParseDaytime ¶
type LogLevel ¶
type LogLevel int8
const ( LogLevelEMERG LogLevel = 0 /* system is unusable */ LogLevelALERT LogLevel = 1 /* action must be taken immediately */ LogLevelCRIT LogLevel = 2 /* critical conditions */ LogLevelERR LogLevel = 3 /* error conditions */ LogLevelWARNING LogLevel = 4 /* warning conditions */ LogLevelNOTICE LogLevel = 5 /* normal but significant condition */ LogLevelINFO LogLevel = 6 /* informational */ LogLevelDEBUG LogLevel = 7 /* debug-level messages */ )
type Unit ¶
type Unit int
time related
const ( Microsecond Unit Millisecond Second Minute Hour Day BPS // bytes per second KBPS // kilo bytes per second MBPS // million bytes per second )
Directories
¶
Path | Synopsis |
---|---|
test
command
|
|
examples
|
|
allow_dports_accept
command
|
|
allow_multiports_accept
command
|
|
* Apache License 2.0 * * Copyright (c) 2022, Austin Zhai * All rights reserved.
|
* Apache License 2.0 * * Copyright (c) 2022, Austin Zhai * All rights reserved. |
internal
|
|
test
command
|
|
pkg
|
|
log
* Apache License 2.0 * * Copyright (c) 2022, Austin Zhai * All rights reserved.
|
* Apache License 2.0 * * Copyright (c) 2022, Austin Zhai * All rights reserved. |
network
* Apache License 2.0 * * Copyright (c) 2022, Austin Zhai * All rights reserved.
|
* Apache License 2.0 * * Copyright (c) 2022, Austin Zhai * All rights reserved. |
Click to show internal directories.
Click to hide internal directories.