GatewayConfig
Defined in the gateway module.Rust AI Agent SDK Configuration for a gateway.
Fields
| Name | Type | Description |
|---|---|---|
host | String | Host to bind to |
port | u16 | Port to listen on |
max_connections | usize | Maximum connections |
session_timeout | u64 | Session timeout in seconds |
auth_enabled | bool | Enable authentication |
auth_token | Option<String> | Authentication token (if auth_enabled) |
tls_enabled | bool | Enable TLS |
tls_cert_path | Option<String> | TLS certificate path |
tls_key_path | Option<String> | TLS key path |
Methods
new
host
| Name | Type |
|---|---|
host | impl Into<String> |
port
| Name | Type |
|---|---|
port | u16 |
max_connections
| Name | Type |
|---|---|
max | usize |
session_timeout
| Name | Type |
|---|---|
timeout | u64 |
auth
| Name | Type |
|---|---|
token | impl Into<String> |
tls
| Name | Type |
|---|---|
cert_path | impl Into<String> |
key_path | impl Into<String> |
Source
View on GitHub
praisonai/src/gateway/mod.rs at line 298
