Documentation
¶
Index ¶
- Constants
- func IntervalToTime(i interface{}) time.Duration
- func IsBlockRouteAction(action string) bool
- func IsCustomRouteAction(action string) bool
- func IsDefaultOutboundRouteAction(action string) bool
- func NormalizeRouteMatch(match interface{}) []string
- func SplitBlockRouteMatches(matches []string) ([]string, []string)
- func TrimRouteValues(values []string) []string
- type APIError
- func NewAPIError(statusCode int, errorType ErrorType, message string, url string, err error) *APIError
- func NewAPIErrorFromStatusCode(statusCode int, message string, url string, err error) *APIError
- func NewBusinessLogicError(message string, url string) *APIError
- func NewNetworkError(message string, url string, err error) *APIError
- func NewNotModifiedError() *APIError
- func NewParseError(message string, err error) *APIError
- type AnyTlsHandler
- type AnyTlsNode
- type BaseConfig
- type Client
- func (c *Client) CachedUserList() []UserInfo
- func (c *Client) CloseIdleConnections()
- func (c *Client) Debug(enable bool)
- func (c *Client) GetAliveList(ctx context.Context) (map[int]int, error)
- func (c *Client) GetNodeInfo(ctx context.Context) (node *NodeInfo, err error)
- func (c *Client) GetUserList(ctx context.Context) ([]UserInfo, error)
- func (c *Client) GoString() string
- func (c *Client) ReportNodeOnlineUsers(ctx context.Context, data map[int][]netip.Addr) error
- func (c *Client) ReportUserTraffic(ctx context.Context, userTraffic []UserTraffic) error
- func (c *Client) String() string
- type CommonNode
- type Config
- type EncKeyKind
- type EncSettings
- type ErrorType
- type HeaderField
- type Hysteria2Handler
- type Hysteria2Node
- type HysteriaHandler
- type HysteriaNode
- type NetworkSettings
- type Node
- type NodeHandler
- type NodeInfo
- type OnlineUser
- type RawDNS
- type RealityConfig
- type RequestEvent
- type RequestObserver
- type RequestOutcome
- type Route
- type Rules
- type ShadowsocksHandler
- type ShadowsocksNode
- type TCPHeader
- type TlsSettings
- func (t TlsSettings) DecodeMLDSA65Seed() ([]byte, error)
- func (t TlsSettings) DecodePrivateKey() ([]byte, error)
- func (t TlsSettings) DecodePublicKey() ([]byte, error)
- func (t TlsSettings) DecodeShortID() ([]byte, error)
- func (t TlsSettings) Destination() (string, error)
- func (t TlsSettings) GoString() string
- func (t TlsSettings) String() string
- func (t *TlsSettings) UnmarshalJSON(data []byte) error
- type TrojanHandler
- type TrojanNode
- type TuicHandler
- type TuicNode
- type UserInfo
- type UserListBody
- type UserTraffic
- type VMessHandler
- type VMessNode
- type VlessHandler
- type VlessNode
- type XHTTPRange
- type XHTTPSettings
Constants ¶
const ( None = 0 Tls = 1 Reality = 2 )
Security type
const ( Shadowsocks = "shadowsocks" Trojan = "trojan" Vmess = "vmess" Vless = "vless" Tuic = "tuic" Hysteria = "hysteria" Hysteria2 = "hysteria2" AnyTls = "anytls" )
Node types
const ( RouteActionBlock = "block" RouteActionBlockIP = "block_ip" RouteActionBlockPort = "block_port" RouteActionProtocol = "protocol" RouteActionDNS = "dns" RouteActionRoute = "route" RouteActionRouteIP = "route_ip" RouteActionDefaultOut = "default_out" )
Variables ¶
This section is empty.
Functions ¶
func IntervalToTime ¶
IntervalToTime converts seconds, truncating fractional floats for compatibility. Invalid, non-positive, or overflowing values return 0; do not pass that result directly to a ticker. Node configs are validated separately before conversion.
func IsBlockRouteAction ¶ added in v0.0.9
func IsCustomRouteAction ¶ added in v0.0.9
func IsDefaultOutboundRouteAction ¶ added in v0.0.9
func NormalizeRouteMatch ¶ added in v0.0.9
func NormalizeRouteMatch(match interface{}) []string
func SplitBlockRouteMatches ¶ added in v0.0.9
func TrimRouteValues ¶ added in v0.0.9
Types ¶
type APIError ¶
type APIError struct {
StatusCode int // HTTP Status Code
Type ErrorType // Error Type
Message string // Error Message
URL string // Request URL
Err error // Original Error
}
APIError custom API error type
func NewAPIError ¶
func NewAPIError(statusCode int, errorType ErrorType, message string, url string, err error) *APIError
NewAPIError creates a new API error
func NewAPIErrorFromStatusCode ¶
NewAPIErrorFromStatusCode infers error type from status code automatically
func NewBusinessLogicError ¶
NewBusinessLogicError creates a business logic error Business logic errors usually come from the Message field in API response, default treated as Server Error (500)
func NewNetworkError ¶
NewNetworkError creates a network error
func NewNotModifiedError ¶
func NewNotModifiedError() *APIError
NewNotModifiedError creates a 304 Not Modified error
func NewParseError ¶
NewParseError creates a parse error
func (*APIError) IsNetworkError ¶
IsNetworkError checks if it is a network error
func (*APIError) IsNotModified ¶
IsNotModified checks if it is 304 Not Modified
func (*APIError) IsParseError ¶
IsParseError checks if it is a parse error
func (*APIError) IsServerError ¶
IsServerError checks if it is a server error (4xx/5xx)
type AnyTlsHandler ¶ added in v0.0.6
type AnyTlsHandler struct{}
-- AnyTls --
func (*AnyTlsHandler) ParseConfig ¶ added in v0.0.6
func (h *AnyTlsHandler) ParseConfig(info *NodeInfo, data []byte) (*CommonNode, error)
type AnyTlsNode ¶
type AnyTlsNode struct {
CommonNode
PaddingScheme []string `json:"padding_scheme,omitempty"`
}
func (*AnyTlsNode) GetCommonNode ¶ added in v0.0.4
func (n *AnyTlsNode) GetCommonNode() *CommonNode
func (AnyTlsNode) GoString ¶ added in v0.0.10
func (n AnyTlsNode) GoString() string
func (AnyTlsNode) String ¶ added in v0.0.10
func (n AnyTlsNode) String() string
type BaseConfig ¶
type BaseConfig struct {
PushInterval any `json:"push_interval"`
PullInterval any `json:"pull_interval"`
}
func (BaseConfig) GoString ¶ added in v0.0.10
func (c BaseConfig) GoString() string
func (BaseConfig) String ¶ added in v0.0.10
func (c BaseConfig) String() string
type Client ¶
type Client struct {
// Deprecated: this field is informational; mutating it does not affect client behavior.
APIHost string
// Deprecated: this field is informational; mutating it does not affect client behavior.
APISendIP string
// Deprecated: this field is informational; mutating it does not affect client behavior.
Token string
// Deprecated: this field is informational; mutating it does not affect client behavior.
NodeType string
// Deprecated: this field is informational; mutating it does not affect client behavior.
NodeId int
// contains filtered or unexported fields
}
Client APIClient create a api client to the panel.
func New ¶
New creates an API client, logging a warning and returning nil on construction failure. Prefer NewWithError to handle configuration and transport errors explicitly.
func NewWithError ¶ added in v0.0.10
func (*Client) CachedUserList ¶ added in v0.0.10
CachedUserList returns a copy of the cached users.
func (*Client) CloseIdleConnections ¶ added in v0.1.2
func (c *Client) CloseIdleConnections()
CloseIdleConnections closes pooled idle connections without interrupting active requests. The client remains usable and retains its cached data.
func (*Client) Debug ¶
Debug is disabled because request debug logging can expose authentication credentials and tokens. Deprecated: configure application-level sanitized logging instead.
func (*Client) GetAliveList ¶ added in v0.0.9
func (*Client) GetNodeInfo ¶
func (*Client) GetUserList ¶
GetUserList will pull user from v2board
func (*Client) ReportNodeOnlineUsers ¶
func (*Client) ReportUserTraffic ¶
func (c *Client) ReportUserTraffic(ctx context.Context, userTraffic []UserTraffic) error
type CommonNode ¶
type CommonNode struct {
Host string `json:"host"`
ServerPort int `json:"server_port"`
ServerName string `json:"server_name"`
Routes []Route `json:"routes"`
BaseConfig *BaseConfig `json:"base_config"`
}
func (CommonNode) GoString ¶ added in v0.0.10
func (n CommonNode) GoString() string
func (CommonNode) String ¶ added in v0.0.10
func (n CommonNode) String() string
type Config ¶
type Config struct {
APIHost string
APISendIP string
NodeID int
Key string
NodeType string
Timeout int // seconds
Debug bool
// Observer is optional and captured at construction; changing it later has no effect.
Observer RequestObserver
}
Config api config
type EncKeyKind ¶ added in v0.1.5
type EncKeyKind string
EncKeyKind classifies an encryption private key by its decoded length.
const ( // EncKeyNone means no key is configured. EncKeyNone EncKeyKind = "" // EncKeyX25519 is a 32-byte X25519 key, what the panel generates. EncKeyX25519 EncKeyKind = "x25519" // EncKeyOther is a well-formed key of another length, such as a 64-byte // ML-KEM-768 seed typed by hand. EncKeyOther EncKeyKind = "other" )
type EncSettings ¶
type EncSettings struct {
Mode string `json:"mode"`
Rtt string `json:"rtt"`
Ticket string `json:"ticket"`
ServerPadding string `json:"server_padding"`
PrivateKey string `json:"private_key"`
}
EncSettings is the panel's VLESS encryption settings block. Untouched settings arrive as an empty array, which UnmarshalJSON treats as absent.
func (EncSettings) DecodeKey ¶ added in v0.1.5
func (e EncSettings) DecodeKey() ([]byte, EncKeyKind, error)
DecodeKey returns the decoded private key and its kind. The library reports the shape only; whether a node supports a kind is the node's decision.
func (EncSettings) GoString ¶ added in v0.0.10
func (e EncSettings) GoString() string
func (EncSettings) String ¶ added in v0.0.10
func (e EncSettings) String() string
func (*EncSettings) UnmarshalJSON ¶ added in v0.1.5
func (e *EncSettings) UnmarshalJSON(data []byte) error
UnmarshalJSON accepts absent, null and [] for untouched settings.
type ErrorType ¶
type ErrorType string
ErrorType defines the type of error
const ( // HTTP Errors ErrorTypeServerError ErrorType = "ServerError" // HTTP 4xx/5xx response // Special Error Types ErrorTypeNetworkError ErrorType = "NetworkError" // Network Connection Error ErrorTypeParseError ErrorType = "ParseError" // Response Parse Error ErrorTypeNotModified ErrorType = "NotModified" // 304 Not Modified ErrorTypeUnknown ErrorType = "Unknown" // Unknown Error )
type HeaderField ¶ added in v0.1.5
HeaderField is one HTTP header with its candidate values; the panel stores a value as a string or a list of strings and both forms normalize to a list.
type Hysteria2Handler ¶ added in v0.0.6
type Hysteria2Handler struct{}
-- Hysteria2 --
func (*Hysteria2Handler) ParseConfig ¶ added in v0.0.6
func (h *Hysteria2Handler) ParseConfig(info *NodeInfo, data []byte) (*CommonNode, error)
type Hysteria2Node ¶
type Hysteria2Node struct {
CommonNode
Version int `json:"version"`
IgnoreClientBandwidth bool `json:"ignore_client_bandwidth"`
UpMbps int `json:"up_mbps"`
DownMbps int `json:"down_mbps"`
ObfsType string `json:"obfs"`
ObfsPassword string `json:"obfs-password"`
}
func (*Hysteria2Node) GetCommonNode ¶ added in v0.0.4
func (n *Hysteria2Node) GetCommonNode() *CommonNode
func (Hysteria2Node) GoString ¶ added in v0.0.10
func (n Hysteria2Node) GoString() string
func (Hysteria2Node) String ¶ added in v0.0.10
func (n Hysteria2Node) String() string
type HysteriaHandler ¶ added in v0.0.6
type HysteriaHandler struct{}
-- Hysteria --
func (*HysteriaHandler) ParseConfig ¶ added in v0.0.6
func (h *HysteriaHandler) ParseConfig(info *NodeInfo, data []byte) (*CommonNode, error)
type HysteriaNode ¶
type HysteriaNode struct {
CommonNode
Version int `json:"version"`
UpMbps int `json:"up_mbps"`
DownMbps int `json:"down_mbps"`
Obfs string `json:"obfs"`
}
func (*HysteriaNode) GetCommonNode ¶ added in v0.0.4
func (n *HysteriaNode) GetCommonNode() *CommonNode
func (HysteriaNode) GoString ¶ added in v0.0.10
func (n HysteriaNode) GoString() string
func (HysteriaNode) String ¶ added in v0.0.10
func (n HysteriaNode) String() string
type NetworkSettings ¶ added in v0.1.5
type NetworkSettings struct {
Network string
Path string
Host string
ServiceName string
// MaxEarlyData is nil when unset; an explicit zero remains distinguishable.
// Limits and defaults are the node's policy, not the SDK's.
MaxEarlyData *int
EarlyDataHeaderName string
XHTTP XHTTPSettings
TCPHeader *TCPHeader
UnknownKeys []string
}
NetworkSettings is the decoded panel networkSettings value. UnknownKeys holds the dotted paths of keys this SDK does not model, sorted.
func ParseNetworkSettings ¶ added in v0.1.5
func ParseNetworkSettings(network string, raw json.RawMessage) (NetworkSettings, error)
ParseNetworkSettings decodes networkSettings for one network: tcp, ws, httpupgrade, grpc or xhttp. Absent, null and [] mean empty settings. ws and xhttp default the path to "/", httpupgrade keeps the panel's value, grpc carries only serviceName and no path, and tcp carries the HTTP header. An unsupported network name is an error; which networks a node serves is the node's decision.
type Node ¶ added in v0.0.4
type Node interface {
GetCommonNode() *CommonNode
}
Node interface for polymorphic handling
type NodeHandler ¶ added in v0.0.6
type NodeHandler interface {
// ParseConfig parses the raw JSON body and assigns the result to the matching field in NodeInfo.
// It returns the CommonNode for shared processing.
ParseConfig(node *NodeInfo, data []byte) (*CommonNode, error)
}
NodeHandler defines the interface that all protocol handlers must implement.
type NodeInfo ¶
type NodeInfo struct {
Id int
Type string
Security int
PushInterval time.Duration
PullInterval time.Duration
RawDNS RawDNS
Rules Rules
Routes []Route
// origin
VMess *VMessNode
Vless *VlessNode
Shadowsocks *ShadowsocksNode
Trojan *TrojanNode
Tuic *TuicNode
AnyTls *AnyTlsNode
Hysteria *HysteriaNode
Hysteria2 *Hysteria2Node
Common *CommonNode
}
func (*NodeInfo) ProcessCommonNode ¶ added in v0.0.6
func (node *NodeInfo) ProcessCommonNode(cm *CommonNode)
ProcessCommonNode handles the common node configuration like routes and DNS.
type OnlineUser ¶
User structures
func (OnlineUser) GoString ¶ added in v0.0.10
func (u OnlineUser) GoString() string
func (OnlineUser) String ¶ added in v0.0.10
func (u OnlineUser) String() string
type RealityConfig ¶
type RequestEvent ¶ added in v0.1.3
type RequestEvent struct {
Method string
Path string
Attempt int
Duration time.Duration
StatusCode int // 0 when no HTTP response is available.
Outcome RequestOutcome
}
RequestEvent contains bounded-cardinality metadata only. Path is a library endpoint constant, never a URL or caller-provided value. Attempt starts at 1. Duration covers one HTTP attempt, excluding backoff, refresh wait, parsing, and the observer itself. HTTP success is not an acknowledgement of job completion.
type RequestObserver ¶ added in v0.1.3
type RequestObserver func(RequestEvent)
RequestObserver is invoked synchronously after each HTTP attempt, before parsing or retry decisions. It must return promptly, support concurrent calls, and must not call back into the same Client (refresh operations may be locked). Panics are isolated and discarded, without logging their potentially secret values. Slow/blocking observers still delay their callers, including retries.
type RequestOutcome ¶ added in v0.1.3
type RequestOutcome string
RequestOutcome describes transport/status results, not parsed API success.
const ( RequestSucceeded RequestOutcome = "http_success" RequestNotModified RequestOutcome = "not_modified" RequestHTTPError RequestOutcome = "http_error" RequestNetworkError RequestOutcome = "network_error" RequestCanceled RequestOutcome = "canceled" RequestDeadlineExceeded RequestOutcome = "deadline_exceeded" RequestResponseTooLarge RequestOutcome = "response_too_large" )
type Route ¶
type Route struct {
Id int `json:"id"`
Match interface{} `json:"match"`
Action string `json:"action"`
ActionValue string `json:"action_value"`
}
func (Route) DNSMatches ¶ added in v0.0.10
type ShadowsocksHandler ¶ added in v0.0.6
type ShadowsocksHandler struct{}
-- Shadowsocks --
func (*ShadowsocksHandler) ParseConfig ¶ added in v0.0.6
func (h *ShadowsocksHandler) ParseConfig(info *NodeInfo, data []byte) (*CommonNode, error)
type ShadowsocksNode ¶
type ShadowsocksNode struct {
CommonNode
Cipher string `json:"cipher"`
ServerKey string `json:"server_key"`
Obfs string `json:"obfs"`
ObfsSettings json.RawMessage `json:"obfs_settings"`
}
func (*ShadowsocksNode) GetCommonNode ¶ added in v0.0.4
func (n *ShadowsocksNode) GetCommonNode() *CommonNode
func (ShadowsocksNode) GoString ¶ added in v0.0.10
func (n ShadowsocksNode) GoString() string
func (ShadowsocksNode) String ¶ added in v0.0.10
func (n ShadowsocksNode) String() string
type TCPHeader ¶ added in v0.1.5
type TCPHeader struct {
Type string
RequestVersion string
RequestPaths []string
RequestHosts []string
ResponseVersion string
ResponseStatus string
ResponseReason string
ResponseHeaders []HeaderField
}
TCPHeader is the panel's tcp HTTP header obfuscation (networkSettings.header.type = "http"). The node matches the request paths and hosts and may reuse the response fields.
type TlsSettings ¶
type TlsSettings struct {
ServerName string `json:"server_name"`
Dest string `json:"dest"`
ServerPort string `json:"server_port"`
ShortId string `json:"short_id"`
PrivateKey string `json:"private_key"`
PublicKey string `json:"public_key"`
Mldsa65Seed string `json:"mldsa65Seed"`
Ech string `json:"ech"`
EchConfig []string `json:"ech_config"`
Xver uint64 `json:"xver"`
}
TlsSettings is the panel's TLS and REALITY settings block. Untouched settings arrive as an empty array, numbers may arrive as strings, and ech_config may be a single string or a list; UnmarshalJSON normalizes those shapes. See DecodePrivateKey, DecodePublicKey, DecodeShortID, Destination and DecodeMLDSA65Seed for the REALITY helpers.
func (TlsSettings) DecodeMLDSA65Seed ¶ added in v0.1.5
func (t TlsSettings) DecodeMLDSA65Seed() ([]byte, error)
DecodeMLDSA65Seed decodes tls_settings.mldsa65Seed: base64url, 32 bytes.
func (TlsSettings) DecodePrivateKey ¶ added in v0.1.5
func (t TlsSettings) DecodePrivateKey() ([]byte, error)
DecodePrivateKey decodes tls_settings.private_key: base64url, 32 bytes.
func (TlsSettings) DecodePublicKey ¶ added in v0.1.5
func (t TlsSettings) DecodePublicKey() ([]byte, error)
DecodePublicKey decodes tls_settings.public_key: base64url, 32 bytes.
func (TlsSettings) DecodeShortID ¶ added in v0.1.5
func (t TlsSettings) DecodeShortID() ([]byte, error)
DecodeShortID decodes tls_settings.short_id: hexadecimal, 1 to 8 bytes. Xray pads shorter values with zero bytes, so callers compare decoded bytes rather than text.
func (TlsSettings) Destination ¶ added in v0.1.5
func (t TlsSettings) Destination() (string, error)
Destination returns tls_settings.dest, or derives it from server_name and server_port when dest is empty, defaulting the port to 443.
func (TlsSettings) GoString ¶ added in v0.0.10
func (t TlsSettings) GoString() string
func (TlsSettings) String ¶ added in v0.0.10
func (t TlsSettings) String() string
func (*TlsSettings) UnmarshalJSON ¶ added in v0.1.2
func (t *TlsSettings) UnmarshalJSON(data []byte) error
UnmarshalJSON accepts the shapes panel editors emit: absent, null and [] for untouched settings; server_port as a number or a string; ech_config as a string or a list of strings; and xver as an integer or an integer string from 0 to 2, absent meaning no PROXY protocol.
type TrojanHandler ¶ added in v0.0.6
type TrojanHandler struct{}
-- Trojan --
func (*TrojanHandler) ParseConfig ¶ added in v0.0.6
func (h *TrojanHandler) ParseConfig(info *NodeInfo, data []byte) (*CommonNode, error)
type TrojanNode ¶
type TrojanNode struct {
CommonNode
Network string `json:"network"`
NetworkSettings json.RawMessage `json:"networkSettings"`
}
func (*TrojanNode) GetCommonNode ¶ added in v0.0.4
func (n *TrojanNode) GetCommonNode() *CommonNode
func (TrojanNode) GoString ¶ added in v0.0.10
func (n TrojanNode) GoString() string
func (TrojanNode) String ¶ added in v0.0.10
func (n TrojanNode) String() string
type TuicHandler ¶ added in v0.0.6
type TuicHandler struct{}
-- Tuic --
func (*TuicHandler) ParseConfig ¶ added in v0.0.6
func (h *TuicHandler) ParseConfig(info *NodeInfo, data []byte) (*CommonNode, error)
type TuicNode ¶
type TuicNode struct {
CommonNode
CongestionControl string `json:"congestion_control"`
ZeroRTTHandshake bool `json:"zero_rtt_handshake"`
}
func (*TuicNode) GetCommonNode ¶ added in v0.0.4
func (n *TuicNode) GetCommonNode() *CommonNode
type UserInfo ¶
type UserListBody ¶
type UserListBody struct {
Users []UserInfo `json:"users"`
}
func (UserListBody) GoString ¶ added in v0.0.10
func (u UserListBody) GoString() string
func (UserListBody) String ¶ added in v0.0.10
func (u UserListBody) String() string
type UserTraffic ¶
type UserTraffic struct {
UID int
Upload int64 // User upload: client to proxy.
Download int64 // User download: proxy to client.
}
UserTraffic contains incremental bytes, not lifetime counters. The panel applies its traffic multiplier. Replaying a report can duplicate accounting.
type VMessHandler ¶ added in v0.0.6
type VMessHandler struct{}
func (*VMessHandler) ParseConfig ¶ added in v0.0.6
func (h *VMessHandler) ParseConfig(info *NodeInfo, data []byte) (*CommonNode, error)
type VMessNode ¶
type VMessNode struct {
CommonNode
Tls int `json:"tls"`
TlsSettings TlsSettings `json:"tls_settings"`
Network string `json:"network"`
NetworkSettings json.RawMessage `json:"networkSettings"`
Encryption string `json:"encryption"`
EncryptionSettings EncSettings `json:"encryption_settings"`
}
VMessNode is vmess node info
func (*VMessNode) GetCommonNode ¶ added in v0.0.4
func (n *VMessNode) GetCommonNode() *CommonNode
type VlessHandler ¶ added in v0.0.6
type VlessHandler struct{}
-- VLESS --
func (*VlessHandler) ParseConfig ¶ added in v0.0.6
func (h *VlessHandler) ParseConfig(info *NodeInfo, data []byte) (*CommonNode, error)
type VlessNode ¶
type VlessNode struct {
CommonNode
Tls int `json:"tls"`
TlsSettings TlsSettings `json:"tls_settings"`
Network string `json:"network"`
NetworkSettings json.RawMessage `json:"networkSettings"`
Encryption string `json:"encryption"`
EncryptionSettings EncSettings `json:"encryption_settings"`
Flow string `json:"flow"`
RealityConfig RealityConfig `json:"-"`
}
VlessNode is vless node info
func (*VlessNode) GetCommonNode ¶ added in v0.0.4
func (n *VlessNode) GetCommonNode() *CommonNode
type XHTTPRange ¶ added in v0.1.5
type XHTTPRange struct{ Min, Max int }
XHTTPRange is an inclusive range decoded from a JSON number, a single number string, a "min-max" string, or the panel's "-1" sentinel.
type XHTTPSettings ¶ added in v0.1.5
type XHTTPSettings struct {
Mode string
NoGRPCHeader bool
NoSSEHeader bool
MaxPostBytes XHTTPRange
MaxBufferedPosts int
StreamUpSeconds XHTTPRange
PaddingBytes XHTTPRange
DownloadPort int
}
XHTTPSettings is the allow-listed xhttp extra surface. Absent and null fields keep the published panel defaults.
func DefaultXHTTPSettings ¶ added in v0.1.5
func DefaultXHTTPSettings() XHTTPSettings
DefaultXHTTPSettings returns the published panel defaults for absent fields.