Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ddd/gpb
/ functions
Functions
101 in github.com/ddd/gpb
⨍
Functions
101
◇
Types & classes
23
↓ 92 callers
Method
clone
(&self)
src/workers/progress.rs:119
↓ 16 callers
Function
get_country_format
Get country format information
src/format/format.rs:58
↓ 15 callers
Function
load_format_data
Load and parse the format.json file
src/format/format.rs:38
↓ 13 callers
Method
next
Get the next phone number in the sequence
src/format/format.rs:292
↓ 11 callers
Function
create_client
(subnet: Option<&str>, user_agent: &str)
src/utils/utils.rs:28
↓ 11 callers
Function
force_bg_update
Force an immediate update of the botguard token
src/botguard/botguard.rs:114
↓ 9 callers
Function
lookup
Performs a lookup to check if a phone number or email exists in Google's system
src/lookup/js.rs:28
↓ 9 callers
Function
set_bg_firstname
Set the requested first name for the next botguard token
src/botguard/botguard.rs:60
↓ 9 callers
Function
set_bg_lastname
Set the requested last name for the next botguard token
src/botguard/botguard.rs:66
↓ 7 callers
Function
extract_infix_from_mask
Extract infix from a masked phone number in international format Returns (infix, infix_length) or None if no infix is found
src/utils/mask.rs:96
↓ 5 callers
Method
estimate_total
Estimate total count of numbers that will be generated
src/format/format.rs:377
↓ 5 callers
Function
get_auth_credentials
Get current authentication credentials, refreshing if needed
src/auth/auth.rs:140
↓ 5 callers
Function
get_bg_token
Get the current botguard token
src/botguard/botguard.rs:101
↓ 5 callers
Function
load_mask_data
Load and parse the mask.json file
src/utils/mask.rs:29
↓ 4 callers
Function
append_csv_hit
Append a hit to the CSV output file
src/csv/parser.rs:87
↓ 4 callers
Function
is_using_static_token
Check if we're using a static botguard token
src/botguard/botguard.rs:91
↓ 3 callers
Function
extract_info_from_masked_phone
Process a masked phone number to extract all information (country, suffix, prefix, infix) This consolidated function replaces the separate extractions
src/utils/mask.rs:183
↓ 3 callers
Function
extract_visible_country_code
Extract visible country code from an international format masked phone number
src/utils/mask.rs:163
↓ 3 callers
Function
get_countries_for_mask
Get countries that match a given mask pattern
src/utils/mask.rs:49
↓ 2 callers
Function
check_blacklist
Check if the current subnet is blacklisted for a specific country code
src/utils/blacklist.rs:71
↓ 2 callers
Function
create_fully_masked_pattern
Create a fully masked pattern by replacing all digits with dots
src/utils/mask.rs:156
↓ 2 callers
Function
extract_cookie
Extract cookie from response headers
src/auth/auth.rs:46
↓ 2 callers
Function
extract_gxf
Extract GXF token from no-js page (XSRF)
src/auth/auth.rs:61
↓ 2 callers
Function
extract_prefix_from_mask
Extract prefix from a masked phone number when the country code is known Returns (prefix, prefix_length)
src/utils/mask.rs:117
↓ 2 callers
Function
extract_suffix_from_mask
Extract the suffix from a masked phone number Returns (suffix, suffix_length)
src/utils/mask.rs:70
↓ 2 callers
Function
fetch_auth_credentials
Fetch fresh authentication credentials
src/auth/auth.rs:103
↓ 2 callers
Function
fetch_bg_token
Fetch a new botguard token from the API
src/botguard/botguard.rs:162
↓ 2 callers
Function
get_all_countries
Get a list of all countries in the format data
src/format/format.rs:100
↓ 2 callers
Function
lookup
Performs a lookup to check if a phone number or email exists in Google's system
src/lookup/nojs.rs:7
↓ 2 callers
Function
queue_from_file
Queue work from a file, filtering by prefix, suffix and infix if provided Returns the estimated total number of items to process
src/workers/workers.rs:152
↓ 2 callers
Function
randomString
Function to generate a random string of specified length
tools/bg_gen/main.go:21
↓ 2 callers
Method
set_length
(&self, length: u64)
src/workers/progress.rs:101
↓ 2 callers
Function
set_static_bg_token
Set a static botguard token that won't be refreshed
src/botguard/botguard.rs:72
↓ 2 callers
Method
update_message
(&self, message: &str)
src/workers/progress.rs:93
↓ 2 callers
Function
verify_hit
Verifies if a hit is real or fake by testing with various name combinations For phone numbers, this helps filter out false positives
src/lookup/verification.rs:8
↓ 2 callers
Function
verify_subnet_for_country
Verify subnet for a specific country
src/utils/blacklist.rs:109
↓ 2 callers
Function
wait_for_valid_token
Wait until we have a valid token that matches the requested names
src/botguard/botguard.rs:199
↓ 1 callers
Function
calculate_estimate
Modify the calculate_estimate function to include infix parameter
src/utils/estimation.rs:9
↓ 1 callers
Function
check_all_countries_blacklist
(subnet: &str)
src/utils/blacklist.rs:29
↓ 1 callers
Function
check_ulimit
Check if the system's ulimit for open files is at least 1 million
src/utils/ulimit.rs:5
↓ 1 callers
Method
csv_finish
(&self, total_records: usize, found_records: usize)
src/workers/progress.rs:105
↓ 1 callers
Function
csv_worker
CSV Worker function that processes phone numbers from the queue
src/csv/worker.rs:37
↓ 1 callers
Function
estimate_file_workload
Estimate workload for quick scan (file) mode
src/utils/estimation.rs:25
↓ 1 callers
Function
estimate_fullscan_workload
Estimate workload for full scan (number generation) mode
src/utils/estimation.rs:138
↓ 1 callers
Function
extract_azt
Extract AZT token from js page (XSRF)
src/auth/auth.rs:75
↓ 1 callers
Function
extract_ist
Extract IST (initial session token) from js page (XSRF)
src/auth/auth.rs:89
↓ 1 callers
Function
generateBgToken
generateBgToken generates a bgToken by automating the Google account recovery flow
tools/bg_gen/main.go:48
↓ 1 callers
Function
get_digits_for_country
Get the digits for a country format
src/format/format.rs:88
↓ 1 callers
Function
get_rand_ipv6
(subnet: &str)
src/utils/utils.rs:6
↓ 1 callers
Function
get_test_case_for_country
Get test case for a specific country code from format.json
src/utils/blacklist.rs:13
↓ 1 callers
Function
initialize_csv_output
Initialize CSV output file with header
src/csv/parser.rs:65
↓ 1 callers
Method
is_valid
(&self)
src/auth/auth.rs:33
↓ 1 callers
Method
is_valid
Check if token is still considered valid
src/botguard/botguard.rs:32
↓ 1 callers
Function
output_writer
Handles writing successful hits to the output file
src/workers/workers.rs:298
↓ 1 callers
Function
parse_csv_input
Parse CSV input file containing masked numbers using csv library
src/csv/parser.rs:27
↓ 1 callers
Function
ping_botguard_server
Check if the local botguard token generation server is running
src/botguard/botguard.rs:144
↓ 1 callers
Function
process_csv_mode
Process CSV mode with persistent worker pool
src/csv/processor.rs:18
↓ 1 callers
Function
process_international_country_code
Helper function to determine country code from international format
src/utils/mask.rs:247
↓ 1 callers
Function
randomPhoneDigits
Function to generate a random 7-digit number as string
tools/bg_gen/main.go:32
↓ 1 callers
Function
report_metrics
Metrics reporting task that uses progress bars
src/workers/workers.rs:225
↓ 1 callers
Method
reset_position
(&self)
src/workers/progress.rs:97
↓ 1 callers
Function
sample_file
Sample a file to get an estimate of matching lines
src/utils/estimation.rs:81
↓ 1 callers
Function
start_bg_token_refresh_task
Start a background task that periodically refreshes the botguard token
src/botguard/botguard.rs:232
↓ 1 callers
Method
update_hits
(&self, hits: u64, latest_hit: Option<&str>)
src/workers/progress.rs:67
↓ 1 callers
Method
update_progress
(&self, completed: u64, total: Option<u64>)
src/workers/progress.rs:49
↓ 1 callers
Method
update_stats
(&self, counters: &Arc<Counters>, rps: u64)
src/workers/progress.rs:56
↓ 1 callers
Function
worker
Worker function that processes phone numbers or emails from the queue
src/workers/workers.rs:23
Method
finish
(&self, hits: u64, latest_hit: Option<&str>)
src/workers/progress.rs:74
Function
handleGenerateBgToken
handleGenerateBgToken handles the /api/generate_bgtoken endpoint
tools/bg_gen/main.go:176
Function
handlePing
handlePing handles the /api/ping endpoint
tools/bg_gen/main.go:227
Function
main
()
tools/bg_gen/main.go:240
Function
main
()
src/main.rs:26
Method
new
Add a new() method for easier creation
src/models.rs:18
Method
new
()
src/auth/auth.rs:22
Method
new
(total_work: u64)
src/workers/progress.rs:16
Method
new
(token: String, first_name: String, last_name: String, static_token: bool)
src/botguard/botguard.rs:21
Method
new
( country_format: &CountryFormat, prefix: Option<String>, suffix_filter: Option<String
src/format/format.rs:136
Function
test_auth_credentials_fetch
()
src/auth/auth.rs:170
Function
test_create_fully_masked_pattern
()
src/utils/mask.rs:455
Function
test_extract_infix_from_mask
()
src/utils/mask.rs:375
Function
test_extract_info_from_masked_phone
()
src/utils/mask.rs:319
Function
test_extract_prefix
()
src/utils/mask.rs:470
Function
test_extract_suffix
()
src/utils/mask.rs:433
Function
test_extract_visible_country_code
()
src/utils/mask.rs:489
Function
test_extract_visible_country_code_with_area_code
()
src/utils/mask.rs:504
Function
test_fetch_botguard_token
()
src/botguard/botguard.rs:268
Function
test_format_loading
()
src/format/format.rs:403
Function
test_get_countries_for_mask
()
src/utils/mask.rs:419
Function
test_infix_filtering
()
src/format/format.rs:610
Function
test_international_format_with_infix
()
src/utils/mask.rs:520
Function
test_load_mask_data
()
src/utils/mask.rs:369
Function
test_lookup_invalid_hit
()
src/lookup/js.rs:111
Function
test_lookup_invalid_hit
()
src/lookup/nojs.rs:122
Function
test_lookup_valid_hit
()
src/lookup/js.rs:80
Function
test_lookup_valid_hit
()
src/lookup/nojs.rs:91
Function
test_number_generation_singapore
()
src/format/format.rs:558
Function
test_number_generation_with_prefix
()
src/format/format.rs:509
Function
test_regex_extraction
()
src/auth/auth.rs:198
Function
test_specific_number_generation_jp
()
src/format/format.rs:479
Function
test_specific_number_generation_sg
()
src/format/format.rs:449
next →
1–100 of 101, ranked by callers