v1

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllowRequest

type AllowRequest struct {
	IP   string `json:"ip"`
	Port uint16 `json:"port"`
}

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 BlockManagementResponse added in v0.0.3

type BlockManagementResponse struct {
	Message               string `json:"message"`
	PendingEntriesRemoved uint64 `json:"pending_entries_removed"`
	ActiveFlowsRemoved    uint64 `json:"active_flows_removed"`
	RuntimeAttached       bool   `json:"runtime_attached"`
	RuntimeIface          string `json:"runtime_iface"`
}

BlockManagementResponse — JSON-контракт для ответа на POST /management/block запрос.

type GetManagementSettingsResponse added in v0.0.3

type GetManagementSettingsResponse struct {
	AuthConfigured     bool   `json:"auth_configured"`
	RuntimeAttached    bool   `json:"runtime_attached"`
	RuntimeIface       string `json:"runtime_iface"`
	Issuer             string `json:"issuer"`
	Audience           string `json:"audience"`
	JWKSURL            string `json:"jwks_url"`
	RequiredScope      string `json:"required_scope"`
	GuardedPortsRange  string `json:"guarded_ports_range"`
	Iface              string `json:"iface"`
	HandshakeWindowSec int    `json:"handshake_window_sec"`
	InactiveTimerSec   int    `json:"inactive_timer_sec"`
	UpdatedAt          string `json:"updated_at"` // RFC3339 (UTC)
}

GetManagementSettingsResponse — JSON-контракт для ответа на GET /management/settings запрос.

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.

type UpsertManagementSettingsRequest added in v0.0.3

type UpsertManagementSettingsRequest struct {
	Issuer             string `json:"issuer"`
	Audience           string `json:"audience"`
	JWKSURL            string `json:"jwks_url"`
	RequiredScope      string `json:"required_scope"`
	GuardedPortsRange  string `json:"guarded_ports_range"`
	Iface              string `json:"iface"`
	HandshakeWindowSec int    `json:"handshake_window_sec"`
	InactiveTimerSec   int    `json:"inactive_timer_sec"`
}

UpsertManagementSettingsRequest — JSON-контракт для POST /management/settings запроса.

type UpsertManagementSettingsResponse added in v0.0.3

type UpsertManagementSettingsResponse struct {
	Message            string `json:"message"`
	AuthConfigured     bool   `json:"auth_configured"`
	RuntimeAttached    bool   `json:"runtime_attached"`
	RuntimeIface       string `json:"runtime_iface"`
	Issuer             string `json:"issuer"`
	Audience           string `json:"audience"`
	JWKSURL            string `json:"jwks_url"`
	RequiredScope      string `json:"required_scope"`
	GuardedPortsRange  string `json:"guarded_ports_range"`
	Iface              string `json:"iface"`
	HandshakeWindowSec int    `json:"handshake_window_sec"`
	InactiveTimerSec   int    `json:"inactive_timer_sec"`
	UpdatedAt          string `json:"updated_at"` // RFC3339 (UTC)
}

UpsertManagementSettingsResponse — JSON-контракт для ответа на POST /management/settings запрос.

Jump to

Keyboard shortcuts

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