Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aula-id/mini-gateway-rs
/ functions
Functions
455 in github.com/aula-id/mini-gateway-rs
⨍
Functions
455
◇
Types & classes
126
Function
generate_certificate_production
Convenience function to generate a certificate using production configuration
router-api/src/module/certificate_automation.rs:969
Function
generate_proxy_domain_id
Generates a unique ID for a new proxy domain This is a utility function that generates a UUID v4 string to use as the identifier for a new proxy doma
router-api/src/api/settings/proxydomain_queries.rs:98
Function
generate_uuid
()
router-api/src/api/generation/uuid_generate.rs:42
Function
get_ai_model
(id: web::Path<String>)
router-api/src/api/ai_security/model_get.rs:29
Function
get_all_active_devices
()
router-api/src/config.rs:101
Function
get_bytes_io_frame
( start: DateTime<Utc>, end: DateTime<Utc>, metric: BytesMetric, )
router-api/src/module/temporary_log.rs:1403
Function
get_data_time_frame
( start: DateTime<Utc>, end: DateTime<Utc>, )
router-api/src/module/temporary_log.rs:1354
Function
get_data_time_frame_by_conn_stall
( start: DateTime<Utc>, end: DateTime<Utc>, )
router-api/src/module/temporary_log.rs:1387
Function
get_data_time_frame_by_status_code
( start: DateTime<Utc>, end: DateTime<Utc>, status_filter: i32, )
router-api/src/module/temporary_log.rs:1370
Function
get_due_for_renewal
(req: HttpRequest)
router-api/src/api/settings/certificate_management.rs:237
Function
get_gateway
(path: web::Path<String>)
router-api/src/api/settings/gateway_get.rs:16
Function
get_gateway_node
(path: web::Path<String>)
router-api/src/api/settings/gwnode_get.rs:14
Function
get_inference_stats
()
router-api/src/api/ai_security/inference_stats.rs:43
Method
get_logs_dir
Get the logs directory path, defaulting to standard location
router-api/src/module/certbot_runner.rs:115
Method
get_next_log
(&self)
router-api/src/module/memory_log/core.rs:436
Function
get_proxy
(path: web::Path<String>)
router-api/src/api/settings/proxy_get.rs:10
Function
get_proxy_domain_by_id
(id: &str)
router-api/src/api/settings/proxydomain_queries.rs:174
Method
get_work_dir
Get the work directory path, defaulting to standard location
router-api/src/module/certbot_runner.rs:108
Function
init
Initialize and run all server components. This function launches multiple server instances in separate threads: 1. Gateway services for API routing (
router-core/src/system/server.rs:224
Function
init
path stay as it is
router-core/src/system/prottp/app/gateway_path.rs:4
Function
init
(payload: String)
router-core/src/system/prottp/app/gateway_node.rs:64
Function
init
now proxy data always accept high speed.
router-core/src/system/prottp/app/proxy_node.rs:50
Function
init
Initialize/update blocklist from prottp payload. Called by the prottp handler every ~5 seconds. Parses the JSON once, rebuilds the in-memory cache, a
router-core/src/system/prottp/app/blocklist.rs:43
Function
init
()
router-core/src/system/scheduler/blocklist_cleanup.rs:12
Function
init
Initializes the termination process for the router. # Functionality This function triggers a self-termination of the current process by: 1. Obtainin
router-core/src/system/terminator/service.rs:43
Function
init
Detects if the Ctrl+X key combination was pressed within the specified duration. This function temporarily switches the terminal to raw mode (if not
router-core/src/system/terminator/cli.rs:69
Function
init
()
router-core/src/system/default_page/tls_honeypot.rs:5
Function
init
()
router-core/src/system/default_page/p500.rs:4
Function
init
Initialize the 404 Not Found error page handler. This function starts a dedicated TCP server that listens for connections on the configured 404 handl
router-core/src/system/default_page/p404.rs:49
Function
init
()
router-api/src/module/database_log.rs:332
Function
init
Initialize blocklist store
router-api/src/module/ai_security/blocklist_store.rs:32
Function
init
(path: web::Path<String>)
router-api/src/api/users/handlers/get_user.rs:7
Function
init
Delete a user
router-api/src/api/users/handlers/delete_user.rs:6
Function
init
(req: HttpRequest, create_req: web::Json<CreateUserRequest>)
router-api/src/api/users/handlers/create_user.rs:8
Function
init
()
router-api/src/api/users/handlers/get_users.rs:7
Function
init
(login_req: web::Json<LoginRequest>)
router-api/src/api/users/handlers/login.rs:24
Function
init
( req: HttpRequest, path: web::Path<String>, update_req: web::Json<UpdateUserRequest>, )
router-api/src/api/users/handlers/update_user.rs:6
Function
init_global_sender
Initialize the global UDP sender with a specific binding address This should be called early in your application startup if you need to bind to a spe
router-core/src/system/udp_sender/mod.rs:162
Function
init_with_table
(table_name: &str)
router-api/src/module/database_log.rs:345
Method
is_regex_pattern
Helper function to determine if a pattern string contains regex special characters. This function checks if a string has regex special metacharacters
router-core/src/app/proxy_fast.rs:226
Function
list_ai_models
()
router-api/src/api/ai_security/model_list.rs:22
Function
list_gateway_nodes
()
router-api/src/api/settings/gwnode_list.rs:9
Function
list_gateway_nodes_by_proxy
(path: web::Path<String>)
router-api/src/api/settings/gwnode_list.rs:27
Function
list_gateways
()
router-api/src/api/settings/gateway_list.rs:57
Function
list_gateways_by_gwnode
(path: web::Path<String>)
router-api/src/api/settings/gateway_list.rs:102
Function
list_proxies
()
router-api/src/api/settings/proxy_list.rs:10
Function
listen
()
router-api/src/module/memory_log/logging/gateway.rs:8
Function
load_onnx_model
(file_path: &str)
router-api/src/module/ai_security/models.rs:118
Method
log
Processes a log record if it is enabled. If the record meets the level criteria set by `enabled`, this method converts the log arguments to a string
router-core/src/system/writer/logger.rs:48
Function
log_to_gateway
(message: &str)
router-core/src/system/udp_sender/mod.rs:218
Function
log_to_proxy
(message: &str)
router-core/src/system/udp_sender/mod.rs:205
Method
logging
Logs request details after completion.
router-core/src/app/gateway_fast.rs:1017
Function
main
()
router-core/src/main.rs:50
Function
main
()
router-api/src/main.rs:109
Function
main
()
router-cli/src/main.rs:93
Function
main
()
router-rds/src/main.rs:1
Method
new
(per_shard_capacity: usize)
router-core/src/app/proxy_fast.rs:54
Method
new
(per_shard_capacity: usize)
router-core/src/app/gateway_fast.rs:123
Method
new
()
router-core/src/system/server.rs:55
Method
new
(address: &str)
router-core/src/system/prottp/core.rs:22
Method
new
Creates a new ultra-high throughput ID generator. # Parameters `node_id` - Unique identifier for this node (0 to 4,095) `shard_id` - Shard identifie
router-core/src/system/writer/rawid.rs:210
Method
new
(capacity: usize)
router-core/src/system/memory_log/mod.rs:81
Method
new
Creates a new UdpSender bound to the given local address # Arguments `bind_addr` - The local address to bind to (e.g. "0.0.0.0:0" for any interface a
router-core/src/system/udp_sender/mod.rs:26
Method
new
Create a new UDP log database pooler with default 5-second flush interval and default table name "logs"
router-api/src/module/database_log.rs:57
Method
new
Create a new certificate automation manager with custom configuration
router-api/src/module/certificate_automation.rs:93
Method
new
(domain: &str)
router-api/src/module/certbot_runner.rs:158
Method
new
Creates a new database connection to the main database. The database file is located at `/tmp/gwrs/data/core.sqlite`. # Returns A `DatabaseResult`
router-api/src/module/database.rs:135
Method
new
(owner: String)
router-api/src/module/temporary_log.rs:162
Method
new
()
router-api/src/module/broker.rs:10
Method
new
(host: &str, port: u16)
router-api/src/module/httpc.rs:15
Method
new
Creates a new OnnxModel without loading it (lazy loading)
router-api/src/module/ai_security/models.rs:35
Method
new
Creates a new Isolation Forest handler
router-api/src/module/ai_security/thread_isolation.rs:20
Method
new
Creates a new XGBoost handler
router-api/src/module/ai_security/thread_xgboost.rs:118
Method
new
(capacity: usize)
router-api/src/module/memory_log/core.rs:66
Method
new
Creates a new user with the given attributes This method handles generating a unique ID and converting the password to a hashed format. In a producti
router-api/src/api/users/models.rs:138
Method
new
(secret_key: String, token_validity_minutes: u64)
router-api/src/api/users/helper/auth_token.rs:138
Method
new
()
router-api/src/api/users/helper/auth_middleware.rs:21
Method
new
()
router-api/src/api/statistics/unified_stats.rs:51
Method
new_ctx
(&self)
router-core/src/app/gateway_fast.rs:570
Method
new_log
Creates a new database connection to the logging database. The database file is located at `/tmp/gwrs/data/core_logging.sqlite`. # Returns A `Datab
router-api/src/module/database.rs:155
Method
new_production
Create a new certificate automation manager with production configuration
router-api/src/module/certificate_automation.rs:71
Method
new_staging
Create a new certificate automation manager with default staging configuration (no email)
router-api/src/module/certificate_automation.rs:44
Method
new_staging_with_email
Create a new certificate automation manager with staging configuration and custom email
router-api/src/module/certificate_automation.rs:49
Method
new_transform
(&self, service: S)
router-api/src/api/users/helper/auth_middleware.rs:47
Method
new_with_capacity
New constructor with capacity requirement
router-core/src/system/memory_log/mod.rs:716
Method
new_with_config_dir
(domain: &str, config_dir: &str)
router-api/src/module/certbot_runner.rs:162
Method
new_with_fresh_start
(name: &str, size: usize)
router-core/src/system/memory_log/mod.rs:664
Method
new_with_options
Constructor with all options - enhanced with better error handling
router-core/src/system/memory_log/mod.rs:675
Method
non_root
Create a configuration for non-root operation with custom directories
router-api/src/module/certbot_runner.rs:79
Method
overflow_count
(&self)
router-core/src/system/memory_log/mod.rs:598
Method
overflow_count
Get overflow count (if available)
router-api/src/module/memory_log/core.rs:373
Method
param
Adds a parameter to the query. This method adds a parameter to the query and returns the modified query builder, allowing for method chaining. # Par
router-api/src/module/database.rs:694
Function
pending_count
()
router-api/src/module/ai_security/blocklist_store.rs:95
Method
post_bytes
Send binary data - returns success/failure only
router-api/src/module/httpc.rs:102
Method
post_json
Send JSON data - returns success/failure only
router-api/src/module/httpc.rs:92
Method
process_message
Process a raw log message into a formatted one
router-api/src/module/database_log.rs:122
Method
process_new
( self: &Arc<Self>, io: Stream, _shutdown: &ShutdownWatch, )
router-core/src/app/proxy_fast.rs:796
Method
proxy
path for (pem, key)
router-core/src/system/prottp/app/tls_tools.rs:10
Method
proxy_upstream_filter
( &self, session: &mut Session, _ctx: &mut Self::CTX, )
router-core/src/app/gateway_fast.rs:595
Method
queue_size
(&self)
router-core/src/system/memory_log/mod.rs:586
← previous
next →
301–400 of 455, ranked by callers