Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllowRequest ¶
AllowRequest — JSON контракт REST API v1 для POST /allow.
type AllowResponse ¶
type AllowResponse struct {
Message string `json:"message"`
Expires string `json:"expires"` // RFC3339 (UTC)
IP string `json:"ip"`
Port uint16 `json:"port"`
}
AllowResponse — JSON контракт REST API v1 ответ на POST /allow.
type StatsResponse ¶
type StatsResponse struct {
Allowed uint64 `json:"allowed"`
Dropped uint64 `json:"dropped"`
SYNAllowed uint64 `json:"syn_allowed"`
SYNDropped uint64 `json:"syn_dropped"`
ActiveFlowHits uint64 `json:"active_flow_hits"`
PendingPromotions uint64 `json:"pending_promotions"`
PendingExpiredCleanups uint64 `json:"pending_expired_cleanups"`
IPPortAuthHits uint64 `json:"ip_port_auth_hits"`
NonGuardedPortAllowed uint64 `json:"non_guarded_port_allowed"`
GuardedPortDropped uint64 `json:"guarded_port_dropped"`
AllowRatePercent float64 `json:"allow_rate_percent"`
DropRatePercent float64 `json:"drop_rate_percent"`
}
StatsResponse — JSON контракт REST API v1 ответ на GET /stats.
Click to show internal directories.
Click to hide internal directories.