MCPcopy Create free account

hub / github.com/WCY-dt/ponghub / functions

Functions191 in github.com/WCY-dt/ponghub

↓ 1 callersMethodgenerateUserAgent
()
internal/common/params/handlers.go:95
↓ 1 callersFunctiongetAvailability
getAvailability calculates and updates the availability for each service in the report
internal/reporter/report.go:48
↓ 1 callersFunctiongetCertStatus
getCertStatus updates the report with certificate status from the current check results
internal/reporter/report.go:67
↓ 1 callersMethodgetHostname
()
internal/common/params/handlers.go:87
↓ 1 callersFunctiongetHttpMethod
getHttpMethod converts a string method to an HTTP method constant
internal/checker/endpoints.go:155
↓ 1 callersFunctiongetLatestTime
getLatestTime retrieves the latest time from the log data
internal/reporter/report.go:131
↓ 1 callersMethodgetLocalIP
()
internal/common/params/handlers.go:71
↓ 1 callersFunctiongetMapOfCurrentServicesAndEndpoints
getMapOfCurrentServicesAndEndpoints creates maps for quick lookup of existing services and endpoints
internal/common/logger.go:71
↓ 1 callersFunctionisHTTPS
isHTTPS checks if the URL uses HTTPS
internal/checker/cert.go:12
↓ 1 callersFunctionisSuccessfulResponse
isSuccessfulResponse checks if the response from the server is successful based on the configuration
internal/checker/endpoints.go:182
↓ 1 callersFunctionisTestMode
isTestMode checks if the current execution is in test mode
internal/checker/utils.go:12
↓ 1 callersMethodjsonEscape
(input string)
internal/common/params/handlers.go:107
↓ 1 callersFunctionprocessCheckResult
processCheckResult processes the check results for a service
internal/common/checker.go:11
↓ 1 callersFunctionresolveConfigParameters
resolveConfigParameters resolves dynamic parameters in configuration
internal/configure/config.go:47
↓ 1 callersMethodresolveParametersWithDepth
resolveParametersWithDepth resolves parameters with recursion depth control and cycle detection
internal/common/params/params.go:227
↓ 1 callersMethodresolveSpecialParametersOnly
resolveSpecialParametersOnly resolves only Special Parameters while preserving Go template syntax
internal/notifier/channels/webhook.go:236
↓ 1 callersMethodreverseString
(input string)
internal/common/params/handlers.go:154
↓ 1 callersFunctionsendHTTPRequestWithCustomBody
SendHTTPRequestWithCustomBody sends an HTTP request with custom body content
internal/notifier/channels/utils.go:136
↓ 1 callersMethodsendPlain
sendPlain sends email using plain connection (not recommended)
internal/notifier/channels/email.go:115
↓ 1 callersMethodsendWithRetry
sendWithRetry sends the webhook with retry logic
internal/notifier/channels/webhook.go:297
↓ 1 callersMethodsendWithStartTLS
sendWithStartTLS sends email using STARTTLS
internal/notifier/channels/email.go:86
↓ 1 callersMethodsendWithTLS
sendWithTLS sends email using direct TLS connection
internal/notifier/channels/email.go:51
↓ 1 callersMethodsetAuthentication
setAuthentication sets authentication headers based on configuration
internal/notifier/channels/webhook.go:264
↓ 1 callersFunctionsetDefaultConfigs
setDefaultConfigs sets default values for the configuration fields
internal/configure/config.go:69
↓ 1 callersFunctionsetDefaultNotifications
setDefaultNotifications sets default values for notification configuration
internal/configure/config.go:86
↓ 1 callersMethodsubString
(input string)
internal/common/params/handlers.go:162
↓ 1 callersMethodurlEncode
(input string)
internal/common/params/handlers.go:103
↓ 1 callersFunctionwriteCertEndpointDetails
writeCertEndpointDetails writes detailed information about certificate issues
internal/notifier/notify.go:259
↓ 1 callersFunctionwriteCertificateIssues
writeCertificateIssues writes information about certificate issues
internal/notifier/notify.go:242
↓ 1 callersFunctionwriteHeader
writeHeader writes the report header with timestamp
internal/notifier/notify.go:179
↓ 1 callersFunctionwriteSummary
writeSummary writes the summary statistics
internal/notifier/notify.go:289
↓ 1 callersFunctionwriteUnavailableEndpointDetails
writeUnavailableEndpointDetails writes detailed information about an unavailable endpoint
internal/notifier/notify.go:203
↓ 1 callersFunctionwriteUnavailableServices
writeUnavailableServices writes information about unavailable services
internal/notifier/notify.go:186
FunctionBenchmarkEmailNotifier_BuildEmailBody
Benchmark test
internal/notifier/channels/email_test.go:262
MethodIsRetryable
IsRetryable checks if the HTTP error is retryable
internal/notifier/channels/utils.go:25
MethodIsValid
IsValid checks if the CheckResult is valid
internal/types/types/chk_result/chk_result.go:34
MethodSend
Send implements the NotificationService interface For default notifications, we write to stderr and set an exit flag
internal/notifier/channels/default.go:26
FunctionTestCollectCertProblemEndpoints
goland:noinspection HttpUrlsUsage
internal/notifier/notify_test.go:53
FunctionTestCollectUnavailableEndpoints
goland:noinspection HttpUrlsUsage,HttpUrlsUsage,HttpUrlsUsage,HttpUrlsUsage,HttpUrlsUsage
internal/notifier/notify_test.go:15
FunctionTestCountEndpoints
goland:noinspection HttpUrlsUsage,HttpUrlsUsage,HttpUrlsUsage
internal/notifier/notify_test.go:114
FunctionTestEmailNotifier_BuildEmailBody
(t *testing.T)
internal/notifier/channels/email_test.go:33
FunctionTestEmailNotifier_FormatRecipients
(t *testing.T)
internal/notifier/channels/email_test.go:78
FunctionTestEmailNotifier_Send_Integration
Integration test - requires environment variables to be set
internal/notifier/channels/email_test.go:154
FunctionTestEmailNotifier_Send_InvalidServer
Test with invalid SMTP server (should fail)
internal/notifier/channels/email_test.go:230
FunctionTestEmailNotifier_Send_MissingCredentials
Test for missing credentials
internal/notifier/channels/email_test.go:115
FunctionTestGetOriginalValue
(t *testing.T)
internal/common/params/params_test.go:443
FunctionTestGetResolvedValue
(t *testing.T)
internal/common/params/params_test.go:433
FunctionTestHighlightChanges
(t *testing.T)
internal/common/params/params_test.go:404
FunctionTestMain
(m *testing.M)
cmd/ponghub/main_test.go:136
FunctionTestMain_append
TestMain_append tests the main functionality when appending to an existing log file.
cmd/ponghub/main_test.go:19
FunctionTestMain_new
TestMain_new tests the main functionality when creating a new log file.
cmd/ponghub/main_test.go:24
FunctionTestMaskSensitiveValue
(t *testing.T)
internal/common/params/params_test.go:388
FunctionTestMixedNestedParameters
Test mixed nested and non-nested parameters
internal/common/params/params_test.go:578
FunctionTestNestedTagCycleDetection
Test cycle detection
internal/common/params/params_test.go:543
FunctionTestNestedTagDepthLimit
Test recursion depth limits
internal/common/params/params_test.go:561
FunctionTestNestedTagResolution
Test nested tag resolution
internal/common/params/params_test.go:501
FunctionTestNewEmailNotifier
(t *testing.T)
internal/notifier/channels/email_test.go:14
FunctionTestNewParameterResolver
(t *testing.T)
internal/common/params/params_test.go:12
FunctionTestRemoveExistingNotifyFile
(t *testing.T)
internal/notifier/notify_test.go:133
FunctionTestResolveParameters
(t *testing.T)
internal/common/params/params_test.go:366
FunctionTestResolveSpecialParameterForDisplay
(t *testing.T)
internal/common/params/params_test.go:453
FunctionTestResolveSpecialParameter_Colors
(t *testing.T)
internal/common/params/params_test.go:282
FunctionTestResolveSpecialParameter_Encoding
(t *testing.T)
internal/common/params/params_test.go:195
FunctionTestResolveSpecialParameter_Environment
(t *testing.T)
internal/common/params/params_test.go:106
FunctionTestResolveSpecialParameter_FakeData
(t *testing.T)
internal/common/params/params_test.go:320
FunctionTestResolveSpecialParameter_FileTypes
(t *testing.T)
internal/common/params/params_test.go:304
FunctionTestResolveSpecialParameter_Hash
(t *testing.T)
internal/common/params/params_test.go:150
FunctionTestResolveSpecialParameter_Math
(t *testing.T)
internal/common/params/params_test.go:220
FunctionTestResolveSpecialParameter_Network
(t *testing.T)
internal/common/params/params_test.go:166
FunctionTestResolveSpecialParameter_Random
(t *testing.T)
internal/common/params/params_test.go:47
FunctionTestResolveSpecialParameter_RandomString
(t *testing.T)
internal/common/params/params_test.go:75
FunctionTestResolveSpecialParameter_Sequence
(t *testing.T)
internal/common/params/params_test.go:134
FunctionTestResolveSpecialParameter_TextProcessing
(t *testing.T)
internal/common/params/params_test.go:254
FunctionTestResolveSpecialParameter_TimeFormat
(t *testing.T)
internal/common/params/params_test.go:348
FunctionTestResolveSpecialParameter_UUID
(t *testing.T)
internal/common/params/params_test.go:25
FunctionTestTimeCalculation
(t *testing.T)
internal/common/params/params_test.go:478
FunctionTestWebhookNotifier_Authentication
TestWebhookNotifier_Authentication tests Bearer token authentication
internal/notifier/channels/webhook_test.go:134
FunctionTestWebhookNotifier_BasicSend
TestWebhookNotifier_BasicSend tests basic webhook functionality goland:noinspection DuplicatedCode
internal/notifier/channels/webhook_test.go:17
FunctionTestWebhookNotifier_ConcurrentRequests
TestWebhookNotifier_ConcurrentRequests tests concurrent webhook sending
internal/notifier/channels/webhook_test.go:218
FunctionTestWebhookNotifier_CustomPayload
TestWebhookNotifier_CustomPayload tests the custom payload functionality goland:noinspection DuplicatedCode
internal/notifier/channels/webhook_test.go:75
FunctionTestWebhookNotifier_ErrorHandling
TestWebhookNotifier_ErrorHandling tests error handling and retries
internal/notifier/channels/webhook_test.go:163
FunctionTestWebhookNotifier_RealWorldScenario
TestWebhookNotifier_RealWorldScenario tests real-world webhook usage
internal/notifier/channels/webhook_test.go:267
FunctionTestWebhookNotifier_SpecialParametersInAuth
TestWebhookNotifier_SpecialParametersInAuth tests Special Parameters in authentication
internal/notifier/channels/webhook_test.go:394
FunctionTestWebhookNotifier_SpecialParametersInCustomPayload
TestWebhookNotifier_SpecialParametersInCustomPayload tests Special Parameters in custom payload
internal/notifier/channels/webhook_test.go:330
FunctionTestWriteCertificateStatus
(t *testing.T)
internal/notifier/notify_test.go:288
FunctionTestWriteFailureDetails
(t *testing.T)
internal/notifier/notify_test.go:357
FunctionTestWriteNotificationReport
goland:noinspection HttpUrlsUsage,HttpUrlsUsage
internal/notifier/notify_test.go:199
FunctionTestWriteResponseBody
(t *testing.T)
internal/notifier/notify_test.go:410
FunctionTestWriteToFile
(t *testing.T)
internal/notifier/notify_test.go:170
Functionmain
()
cmd/ponghub/main.go:14
FunctionsendHTTPRequest
SendHTTPRequest sends an HTTP request with retry logic
internal/notifier/channels/utils.go:55
← previous101–191 of 191, ranked by callers