Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/EBWi11/AgentSmith-HUB
/ functions
Functions
2,165 in github.com/EBWi11/AgentSmith-HUB
⨍
Functions
2,165
◇
Types & classes
243
↓ 7 callers
Method
ensureStopChan
()
src/output/output.go:476
↓ 7 callers
Method
executeCheckNode
executeCheckNode executes a single check node
src/rules_engine/engine_core.go:1016
↓ 7 callers
Function
handleApiError
(error, defaultMessage, returnEmptyArray = false)
web/src/api/index.js:43
↓ 7 callers
Method
install
(t *testing.T)
src/cluster/instruction_sync_integration_test.go:96
↓ 7 callers
Function
newFakeClusterRedis
()
src/cluster/instruction_sync_integration_test.go:30
↓ 7 callers
Function
newLocalClassifyCounter
()
src/rules_engine/engine_threshold_cache.go:150
↓ 7 callers
Function
newLocalThresholdCounter
()
src/rules_engine/engine_threshold_cache.go:26
↓ 7 callers
Function
normalizeComponentType
(type = '', target = 'plural')
web/src/api/index.js:75
↓ 7 callers
Function
resetProjectStateForTest
()
src/cluster/instruction_sync_integration_test.go:116
↓ 7 callers
Method
setCurrentVersion
setCurrentVersion updates version and persists to Redis (must be called with lock held)
src/cluster/instruction_sync.go:143
↓ 7 callers
Function
simpleRuleFingerprintFromXML
simpleRuleFingerprintFromXML 解析单条 rule XML 并计算指纹。 忽略 ConditionAST,仅基于结构和字段内容。
src/api/components.go:2849
↓ 7 callers
Function
updateComponent
(componentType string, c echo.Context)
src/api/components.go:1313
↓ 6 callers
Function
CachedRegexMatch
CachedRegexMatch performs regex matching with caching for non-raw values Uses the same logic as REGEX function to ensure compatibility
src/rules_engine/regex_result_cache.go:125
↓ 6 callers
Method
CheckAbsenceTimeout
CheckAbsenceTimeout checks if any absence stages have timed out (for deferred triggering). This is called when the sequence has not completed normally
src/rules_engine/cep_condition.go:702
↓ 6 callers
Method
CleanupKeyLock
CleanupKeyLock is kept for callers that explicitly clean up after deleting a state. Lock entries are now released automatically by UnlockKey once the
src/rules_engine/cep_state.go:236
↓ 6 callers
Function
ClearRegexCache
ClearRegexCache clears the global regex cache.
src/rules_engine/regex_cache.go:132
↓ 6 callers
Method
Close
()
src/rules_engine/cep_value_store.go:183
↓ 6 callers
Function
Eval
Eval performs ThreatBook threat intelligence lookup with caching Args: queryValue string, queryType string, apiKey string (optional) Returns: ThreatBo
src/local_plugin/threatbook/threatbook.go:408
↓ 6 callers
Function
Eval
Eval performs Shodan IP lookup with caching Args: ip string, apiKey string (optional) Returns: ShodanResult object with infrastructure information
src/local_plugin/shodan/shodan.go:307
↓ 6 callers
Method
FindAbsenceCompletionPath
FindAbsenceCompletionPath checks if the sequence can complete due to absence timeout and returns the match indices used. Returns nil if not triggerabl
src/rules_engine/cep_condition.go:839
↓ 6 callers
Function
GetAST
(ori string)
src/rules_engine/engine_condition.go:262
↓ 6 callers
Function
GetInput
Input accessors
src/project/project_struct.go:377
↓ 6 callers
Function
GetPNSOutput
PNS Output accessors
src/project/project_struct.go:479
↓ 6 callers
Method
GetProjectAgents
GetProjectAgents returns all agents used by this project, dynamically calculated from FlowNodes
src/project/project_struct.go:636
↓ 6 callers
Method
GetProjectRulesets
GetProjectRulesets returns all rulesets used by this project, dynamically calculated from FlowNodes
src/project/project_struct.go:237
↓ 6 callers
Function
NewPebbleCEPValueStore
NewPebbleCEPValueStore creates/opens a Pebble DB for a specific ruleset.
src/rules_engine/cep_value_store.go:60
↓ 6 callers
Function
NewRedisErrorLogHandler
NewRedisErrorLogHandler creates a new Redis error log handler
src/logger/logger.go:497
↓ 6 callers
Function
RecordProjectOperation
RecordProjectOperation records a project operation
src/api/operations_history.go:178
↓ 6 callers
Method
SetTestCollectionChan
(ch *chan map[string]interface{})
src/output/output.go:483
↓ 6 callers
Method
Stop
Stop the ruleset engine, waiting for all upstream and downstream data to be processed before shutdown.
src/rules_engine/engine_core.go:492
↓ 6 callers
Method
UnlockKey
UnlockKey releases the per-key mutex.
src/rules_engine/cep_state.go:214
↓ 6 callers
Method
cleanup
cleanup performs aggressive cleanup when normal stop fails
src/project/project.go:2119
↓ 6 callers
Function
ensurePendingChangesSynced
(force bool)
src/api/pending_changes_sync.go:28
↓ 6 callers
Method
getCurrentVersionUnsafe
getCurrentVersionUnsafe returns version string without locking (must be called with lock held)
src/cluster/sync_listener.go:110
↓ 6 callers
Function
isValidRulesetFolderName
(name string)
src/api/ruleset_folders.go:23
↓ 6 callers
Function
jsonError
(c echo.Context, status int, message string)
src/api/http_helpers.go:9
↓ 6 callers
Method
keys
(pattern string)
src/cluster/instruction_sync_integration_test.go:70
↓ 6 callers
Function
loadBuiltRulesetFromTestdata
loadBuiltRulesetFromTestdata reads XML under testdata/, runs ParseRuleset + RulesetBuild + SetTestMode, registers cleanup, and returns a ready ruleset
src/rules_engine/engine_testdata_test.go:31
↓ 6 callers
Function
markPendingChangesDirty
()
src/api/pending_changes_sync.go:42
↓ 6 callers
Method
platformOptimizedContainsCaseInsensitive
ARM64-optimized SIMDContainsCaseInsensitive
src/rules_engine/simd_arm64.go:52
↓ 6 callers
Function
processCheckNode
processCheckNode handles the common logic for processing check nodes
src/rules_engine/engine_struct.go:3017
↓ 6 callers
Method
resolvedLingerDur
()
src/output/output.go:173
↓ 6 callers
Function
shouldRestartProjectForComponentChange
(projectID string, p *Project)
src/project/project.go:45
↓ 6 callers
Function
tokenizeCEPCondition
============================================================================ Tokenizer ===============================================================
src/rules_engine/cep_condition.go:133
↓ 5 callers
Function
CalculateRefCountUnsafe
CalculateRefCountUnsafe performs the same calculation as CalculateRefCount but without acquiring locks This version should only be called when the cal
src/project/project_struct.go:60
↓ 5 callers
Method
CheckConnectivity
CheckConnectivity performs a real connectivity test for the input component This method tests actual connection to external systems (Kafka, SLS, etc.)
src/input/input.go:811
↓ 5 callers
Method
CollectAllComponentsData
()
src/common/daily_stats_manager.go:284
↓ 5 callers
Method
DeleteState
DeleteState removes a SequenceState by key.
src/rules_engine/cep_state.go:259
↓ 5 callers
Method
GetActiveFollowers
GetActiveFollowers returns list of followers currently executing instructions
src/cluster/instruction_sync.go:823
↓ 5 callers
Method
GetAllChanges
GetAllChanges returns all pending changes
src/api/pending_changes.go:141
↓ 5 callers
Method
GetDailyStats
(date, projectID, nodeID string)
src/common/daily_stats_manager.go:195
↓ 5 callers
Function
GetPluginRealArgs
(args []*PluginArg, data map[string]interface{}, cache map[string]common.CheckCoreCache)
src/rules_engine/engine_utils.go:135
↓ 5 callers
Method
GetProduceTotal
GetProduceTotal returns the total produced count.
src/output/output.go:950
↓ 5 callers
Method
GetProjectOutputs
GetProjectOutputs returns all outputs used by this project, dynamically calculated from FlowNodes
src/project/project_struct.go:202
↓ 5 callers
Function
GetRuleValueFromRawFromCache
(cache map[string]common.CheckCoreCache, checkKey string, data map[string]interface{})
src/rules_engine/engine_utils.go:164
↓ 5 callers
Function
GetRuleset
Ruleset accessors
src/project/project_struct.go:445
↓ 5 callers
Method
GetRunningTaskCount
()
src/agent/agent.go:366
↓ 5 callers
Method
GetStageEventIDs
GetStageEventIDs returns the event IDs referenced in a specific stage.
src/rules_engine/cep_condition.go:905
↓ 5 callers
Method
HasAbsenceStages
HasAbsenceStages returns true if any stage in the condition is an absence stage.
src/rules_engine/cep_condition.go:890
↓ 5 callers
Function
NewRuleset
NewRuleset creates a new resource from an XML file path: Path to the resource XML file
src/rules_engine/engine_struct.go:1953
↓ 5 callers
Method
PutSnapshot
PutSnapshot serializes data and enqueues an asynchronous write to Pebble. The payload is kept in an inflight map so that an immediate GetSnapshot can
src/rules_engine/cep_value_store.go:107
↓ 5 callers
Function
RecordLocalPush
RecordLocalPush records a local push operation to Redis
src/api/operations_history.go:106
↓ 5 callers
Method
Sample
Sample attempts to sample the data based on timer (performance optimized version)
src/common/sampler.go:91
↓ 5 callers
Method
SetStatus
(status common.Status, err error)
src/agent/agent.go:223
↓ 5 callers
Method
Stop
Stop stops the output producer and waits for all routines to finish.
src/output/output.go:869
↓ 5 callers
Function
appendUniqueUsage
(values []string, value string)
src/api/component_usage_indexes.go:140
↓ 5 callers
Function
applyMergedConfig
()
web/src/config/index.js:34
↓ 5 callers
Method
createComponentInstance
createComponentInstance creates actual component instances from configuration
src/cluster/sync_listener.go:892
↓ 5 callers
Function
decompressState
decompressState decompresses a zstd-compressed string and deserializes to SequenceState. Transparently handles both compressed and uncompressed (legac
src/rules_engine/cep_state.go:95
↓ 5 callers
Function
extractLineNumber
(errorMessage, componentType = null, editorContent = null)
web/src/utils/common.js:181
↓ 5 callers
Function
generateCacheKey
generateCacheKey creates a cache key from regex pattern and input value
src/rules_engine/regex_result_cache.go:46
↓ 5 callers
Function
getComponentEndpoint
(type, id = '')
web/src/api/index.js:120
↓ 5 callers
Function
getLineNumber
getLineNumber finds the line number of a pattern in XML content
src/rules_engine/engine_struct.go:503
↓ 5 callers
Function
getLogDir
getLogDir returns the appropriate log directory based on the operating system
src/logger/logger.go:24
↓ 5 callers
Method
getNextToken
()
src/rules_engine/engine_condition.go:84
↓ 5 callers
Function
getSASLMechanism
getSASLMechanism returns the appropriate SASL mechanism based on the configuration
src/common/kafka.go:298
↓ 5 callers
Function
getTLSDialOpt
(cfg *KafkaTLSConfig)
src/common/kafka.go:710
↓ 5 callers
Function
hasFromRawPrefix
Optimized prefix checking - avoid strings.HasPrefix overhead
src/rules_engine/engine_core.go:87
↓ 5 callers
Function
orderedThresholdGroupByFields
(threshold *Threshold)
src/rules_engine/engine_core.go:2369
↓ 5 callers
Function
parseNodeDirect
parseNodeDirect splits "TYPE.name" into ("TYPE", "name")
src/api/testing.go:2176
↓ 5 callers
Function
parseRefFromExpiryKey
(k []byte)
src/rules_engine/cep_value_store.go:355
↓ 5 callers
Method
parseWithGrok
parseWithGrok parses the input data using grok pattern if configured
src/input/input.go:221
↓ 5 callers
Function
pendingRuleDuplicate
pendingRuleDuplicate 使用 rules_engine 解析后的结构来做近似"逻辑等价"判断(忽略 ConditionAST)。
src/api/components.go:2863
↓ 5 callers
Method
processOutputMessage
(msg map[string]interface{}, hasTestCollector bool, testCollectorType string)
src/output/output.go:512
↓ 5 callers
Function
refreshAffectedProjectsForComponentChange
(componentType, componentID string, affectedProjects []string, source string, recordOperation bool)
src/api/runtime_refresh.go:8
↓ 5 callers
Function
resolveAliyunSLSRoutingValue
(msg map[string]interface{}, staticValue string, fieldPath string)
src/common/aliyun_sls.go:133
↓ 5 callers
Function
rulesetErrorResponse
Helper function to return appropriate error format for ruleset APIs
src/api/testing.go:33
↓ 5 callers
Function
serializeState
serializeState serializes a SequenceState to zstd-compressed JSON.
src/rules_engine/cep_state.go:72
↓ 5 callers
Method
stopComponentsInternal
()
src/project/project.go:1934
↓ 5 callers
Function
stringValue
(value interface{})
config/plugin/pushAlertToIris.go:340
↓ 5 callers
Function
validatePluginParameters
validatePluginParameters validates the parameters of a plugin call
src/rules_engine/engine_struct.go:1657
↓ 4 callers
Method
Clear
Clear removes all entries from the cache
src/rules_engine/regex_result_cache.go:106
↓ 4 callers
Function
Eval
Eval performs VirusTotal hash lookup with caching Args: hash string, apiKey string (optional) Returns: VirusTotalResult object with detection informat
src/local_plugin/virustotal/virustotal.go:270
↓ 4 callers
Method
FindCompletionPath
============================================================================ Completion Path (Phase 3b: find which matches were used) ================
src/rules_engine/cep_condition.go:784
↓ 4 callers
Method
GetCurrentMetrics
GetCurrentMetrics returns the latest system metrics
src/common/system_monitor.go:383
↓ 4 callers
Method
GetIncrementAndUpdate
GetIncrementAndUpdate returns the increment since last call and updates the baseline. This method is thread-safe and designed for statistics collectio
src/input/input.go:796
↓ 4 callers
Method
GetOrCreateState
GetOrCreateState atomically gets or creates a SequenceState for the given key. IMPORTANT: The caller MUST hold the per-key lock via LockKey before cal
src/rules_engine/cep_state.go:640
↓ 4 callers
Function
GetOutput
Output accessors
src/project/project_struct.go:411
↓ 4 callers
Function
GetProject
Project accessors
src/project/project_struct.go:340
↓ 4 callers
Function
GetRedisSampleManager
GetRedisSampleManager returns the global Redis sample manager
src/common/redis_sample_manager.go:456
← previous
next →
101–200 of 2,165, ranked by callers