Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/WCY-dt/ponghub
/ functions
Functions
191 in github.com/WCY-dt/ponghub
⨍
Functions
191
◇
Types & classes
32
↓ 1 callers
Method
generateUserAgent
()
internal/common/params/handlers.go:95
↓ 1 callers
Function
getAvailability
getAvailability calculates and updates the availability for each service in the report
internal/reporter/report.go:48
↓ 1 callers
Function
getCertStatus
getCertStatus updates the report with certificate status from the current check results
internal/reporter/report.go:67
↓ 1 callers
Method
getHostname
()
internal/common/params/handlers.go:87
↓ 1 callers
Function
getHttpMethod
getHttpMethod converts a string method to an HTTP method constant
internal/checker/endpoints.go:155
↓ 1 callers
Function
getLatestTime
getLatestTime retrieves the latest time from the log data
internal/reporter/report.go:131
↓ 1 callers
Method
getLocalIP
()
internal/common/params/handlers.go:71
↓ 1 callers
Function
getMapOfCurrentServicesAndEndpoints
getMapOfCurrentServicesAndEndpoints creates maps for quick lookup of existing services and endpoints
internal/common/logger.go:71
↓ 1 callers
Function
isHTTPS
isHTTPS checks if the URL uses HTTPS
internal/checker/cert.go:12
↓ 1 callers
Function
isSuccessfulResponse
isSuccessfulResponse checks if the response from the server is successful based on the configuration
internal/checker/endpoints.go:182
↓ 1 callers
Function
isTestMode
isTestMode checks if the current execution is in test mode
internal/checker/utils.go:12
↓ 1 callers
Method
jsonEscape
(input string)
internal/common/params/handlers.go:107
↓ 1 callers
Function
processCheckResult
processCheckResult processes the check results for a service
internal/common/checker.go:11
↓ 1 callers
Function
resolveConfigParameters
resolveConfigParameters resolves dynamic parameters in configuration
internal/configure/config.go:47
↓ 1 callers
Method
resolveParametersWithDepth
resolveParametersWithDepth resolves parameters with recursion depth control and cycle detection
internal/common/params/params.go:227
↓ 1 callers
Method
resolveSpecialParametersOnly
resolveSpecialParametersOnly resolves only Special Parameters while preserving Go template syntax
internal/notifier/channels/webhook.go:236
↓ 1 callers
Method
reverseString
(input string)
internal/common/params/handlers.go:154
↓ 1 callers
Function
sendHTTPRequestWithCustomBody
SendHTTPRequestWithCustomBody sends an HTTP request with custom body content
internal/notifier/channels/utils.go:136
↓ 1 callers
Method
sendPlain
sendPlain sends email using plain connection (not recommended)
internal/notifier/channels/email.go:115
↓ 1 callers
Method
sendWithRetry
sendWithRetry sends the webhook with retry logic
internal/notifier/channels/webhook.go:297
↓ 1 callers
Method
sendWithStartTLS
sendWithStartTLS sends email using STARTTLS
internal/notifier/channels/email.go:86
↓ 1 callers
Method
sendWithTLS
sendWithTLS sends email using direct TLS connection
internal/notifier/channels/email.go:51
↓ 1 callers
Method
setAuthentication
setAuthentication sets authentication headers based on configuration
internal/notifier/channels/webhook.go:264
↓ 1 callers
Function
setDefaultConfigs
setDefaultConfigs sets default values for the configuration fields
internal/configure/config.go:69
↓ 1 callers
Function
setDefaultNotifications
setDefaultNotifications sets default values for notification configuration
internal/configure/config.go:86
↓ 1 callers
Method
subString
(input string)
internal/common/params/handlers.go:162
↓ 1 callers
Method
urlEncode
(input string)
internal/common/params/handlers.go:103
↓ 1 callers
Function
writeCertEndpointDetails
writeCertEndpointDetails writes detailed information about certificate issues
internal/notifier/notify.go:259
↓ 1 callers
Function
writeCertificateIssues
writeCertificateIssues writes information about certificate issues
internal/notifier/notify.go:242
↓ 1 callers
Function
writeHeader
writeHeader writes the report header with timestamp
internal/notifier/notify.go:179
↓ 1 callers
Function
writeSummary
writeSummary writes the summary statistics
internal/notifier/notify.go:289
↓ 1 callers
Function
writeUnavailableEndpointDetails
writeUnavailableEndpointDetails writes detailed information about an unavailable endpoint
internal/notifier/notify.go:203
↓ 1 callers
Function
writeUnavailableServices
writeUnavailableServices writes information about unavailable services
internal/notifier/notify.go:186
Function
BenchmarkEmailNotifier_BuildEmailBody
Benchmark test
internal/notifier/channels/email_test.go:262
Method
IsRetryable
IsRetryable checks if the HTTP error is retryable
internal/notifier/channels/utils.go:25
Method
IsValid
IsValid checks if the CheckResult is valid
internal/types/types/chk_result/chk_result.go:34
Method
Send
Send implements the NotificationService interface For default notifications, we write to stderr and set an exit flag
internal/notifier/channels/default.go:26
Function
TestCollectCertProblemEndpoints
goland:noinspection HttpUrlsUsage
internal/notifier/notify_test.go:53
Function
TestCollectUnavailableEndpoints
goland:noinspection HttpUrlsUsage,HttpUrlsUsage,HttpUrlsUsage,HttpUrlsUsage,HttpUrlsUsage
internal/notifier/notify_test.go:15
Function
TestCountEndpoints
goland:noinspection HttpUrlsUsage,HttpUrlsUsage,HttpUrlsUsage
internal/notifier/notify_test.go:114
Function
TestEmailNotifier_BuildEmailBody
(t *testing.T)
internal/notifier/channels/email_test.go:33
Function
TestEmailNotifier_FormatRecipients
(t *testing.T)
internal/notifier/channels/email_test.go:78
Function
TestEmailNotifier_Send_Integration
Integration test - requires environment variables to be set
internal/notifier/channels/email_test.go:154
Function
TestEmailNotifier_Send_InvalidServer
Test with invalid SMTP server (should fail)
internal/notifier/channels/email_test.go:230
Function
TestEmailNotifier_Send_MissingCredentials
Test for missing credentials
internal/notifier/channels/email_test.go:115
Function
TestGetOriginalValue
(t *testing.T)
internal/common/params/params_test.go:443
Function
TestGetResolvedValue
(t *testing.T)
internal/common/params/params_test.go:433
Function
TestHighlightChanges
(t *testing.T)
internal/common/params/params_test.go:404
Function
TestMain
(m *testing.M)
cmd/ponghub/main_test.go:136
Function
TestMain_append
TestMain_append tests the main functionality when appending to an existing log file.
cmd/ponghub/main_test.go:19
Function
TestMain_new
TestMain_new tests the main functionality when creating a new log file.
cmd/ponghub/main_test.go:24
Function
TestMaskSensitiveValue
(t *testing.T)
internal/common/params/params_test.go:388
Function
TestMixedNestedParameters
Test mixed nested and non-nested parameters
internal/common/params/params_test.go:578
Function
TestNestedTagCycleDetection
Test cycle detection
internal/common/params/params_test.go:543
Function
TestNestedTagDepthLimit
Test recursion depth limits
internal/common/params/params_test.go:561
Function
TestNestedTagResolution
Test nested tag resolution
internal/common/params/params_test.go:501
Function
TestNewEmailNotifier
(t *testing.T)
internal/notifier/channels/email_test.go:14
Function
TestNewParameterResolver
(t *testing.T)
internal/common/params/params_test.go:12
Function
TestRemoveExistingNotifyFile
(t *testing.T)
internal/notifier/notify_test.go:133
Function
TestResolveParameters
(t *testing.T)
internal/common/params/params_test.go:366
Function
TestResolveSpecialParameterForDisplay
(t *testing.T)
internal/common/params/params_test.go:453
Function
TestResolveSpecialParameter_Colors
(t *testing.T)
internal/common/params/params_test.go:282
Function
TestResolveSpecialParameter_Encoding
(t *testing.T)
internal/common/params/params_test.go:195
Function
TestResolveSpecialParameter_Environment
(t *testing.T)
internal/common/params/params_test.go:106
Function
TestResolveSpecialParameter_FakeData
(t *testing.T)
internal/common/params/params_test.go:320
Function
TestResolveSpecialParameter_FileTypes
(t *testing.T)
internal/common/params/params_test.go:304
Function
TestResolveSpecialParameter_Hash
(t *testing.T)
internal/common/params/params_test.go:150
Function
TestResolveSpecialParameter_Math
(t *testing.T)
internal/common/params/params_test.go:220
Function
TestResolveSpecialParameter_Network
(t *testing.T)
internal/common/params/params_test.go:166
Function
TestResolveSpecialParameter_Random
(t *testing.T)
internal/common/params/params_test.go:47
Function
TestResolveSpecialParameter_RandomString
(t *testing.T)
internal/common/params/params_test.go:75
Function
TestResolveSpecialParameter_Sequence
(t *testing.T)
internal/common/params/params_test.go:134
Function
TestResolveSpecialParameter_TextProcessing
(t *testing.T)
internal/common/params/params_test.go:254
Function
TestResolveSpecialParameter_TimeFormat
(t *testing.T)
internal/common/params/params_test.go:348
Function
TestResolveSpecialParameter_UUID
(t *testing.T)
internal/common/params/params_test.go:25
Function
TestTimeCalculation
(t *testing.T)
internal/common/params/params_test.go:478
Function
TestWebhookNotifier_Authentication
TestWebhookNotifier_Authentication tests Bearer token authentication
internal/notifier/channels/webhook_test.go:134
Function
TestWebhookNotifier_BasicSend
TestWebhookNotifier_BasicSend tests basic webhook functionality goland:noinspection DuplicatedCode
internal/notifier/channels/webhook_test.go:17
Function
TestWebhookNotifier_ConcurrentRequests
TestWebhookNotifier_ConcurrentRequests tests concurrent webhook sending
internal/notifier/channels/webhook_test.go:218
Function
TestWebhookNotifier_CustomPayload
TestWebhookNotifier_CustomPayload tests the custom payload functionality goland:noinspection DuplicatedCode
internal/notifier/channels/webhook_test.go:75
Function
TestWebhookNotifier_ErrorHandling
TestWebhookNotifier_ErrorHandling tests error handling and retries
internal/notifier/channels/webhook_test.go:163
Function
TestWebhookNotifier_RealWorldScenario
TestWebhookNotifier_RealWorldScenario tests real-world webhook usage
internal/notifier/channels/webhook_test.go:267
Function
TestWebhookNotifier_SpecialParametersInAuth
TestWebhookNotifier_SpecialParametersInAuth tests Special Parameters in authentication
internal/notifier/channels/webhook_test.go:394
Function
TestWebhookNotifier_SpecialParametersInCustomPayload
TestWebhookNotifier_SpecialParametersInCustomPayload tests Special Parameters in custom payload
internal/notifier/channels/webhook_test.go:330
Function
TestWriteCertificateStatus
(t *testing.T)
internal/notifier/notify_test.go:288
Function
TestWriteFailureDetails
(t *testing.T)
internal/notifier/notify_test.go:357
Function
TestWriteNotificationReport
goland:noinspection HttpUrlsUsage,HttpUrlsUsage
internal/notifier/notify_test.go:199
Function
TestWriteResponseBody
(t *testing.T)
internal/notifier/notify_test.go:410
Function
TestWriteToFile
(t *testing.T)
internal/notifier/notify_test.go:170
Function
main
()
cmd/ponghub/main.go:14
Function
sendHTTPRequest
SendHTTPRequest sends an HTTP request with retry logic
internal/notifier/channels/utils.go:55
← previous
101–191 of 191, ranked by callers