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
↓ 2 callers
Function
instructionComponentOrder
(operation, componentType string)
src/cluster/sync_listener.go:68
↓ 2 callers
Function
int64FromValue
(value interface{})
config/plugin/pushAlertToIris.go:379
↓ 2 callers
Function
isArgumentTypeCompatible
isArgumentTypeCompatible checks if an argument is compatible with the expected type
src/rules_engine/engine_struct.go:1789
↓ 2 callers
Function
isValidCEPEventID
isValidCEPEventID checks if a string is a valid event ID (alphanumeric, underscore, hyphen).
src/rules_engine/cep_condition.go:186
↓ 2 callers
Function
isValidDomain
isValidDomain checks if the input is a valid domain
src/local_plugin/threatbook/threatbook.go:154
↓ 2 callers
Function
isValidFileHash
isValidFileHash checks if the input is a valid file hash
src/local_plugin/threatbook/threatbook.go:163
↓ 2 callers
Function
isValidHash
isValidHash checks if the input is a valid hash (MD5, SHA1, or SHA256)
src/local_plugin/virustotal/virustotal.go:87
↓ 2 callers
Function
isValidIP
isValidIP checks if the input is a valid IP address
src/local_plugin/threatbook/threatbook.go:149
↓ 2 callers
Function
isValidIP
isValidIP checks if the input is a valid IP address
src/local_plugin/shodan/shodan.go:110
↓ 2 callers
Function
isValidQueryType
isValidQueryType checks if the query type is supported
src/local_plugin/threatbook/threatbook.go:138
↓ 2 callers
Function
isValidURL
isValidURL checks if the input is a valid URL
src/local_plugin/threatbook/threatbook.go:181
↓ 2 callers
Function
isValidVariableName
isValidVariableName validates if a variable name follows the naming rules: - Must start with a letter or underscore - Can contain letters, numbers, an
src/rules_engine/engine_struct.go:49
↓ 2 callers
Method
loadAllInstructions
loadAllInstructions loads all instructions from Redis and fails fast if history is incomplete.
src/cluster/instruction_sync.go:157
↓ 2 callers
Function
loadComponentDirectly
loadComponentDirectly loads a component directly into official storage using unified reload logic This bypasses the temporary file system and *New map
src/api/local_files.go:1054
↓ 2 callers
Function
loadConfig
(filePath, raw string)
src/skill/skill.go:109
↓ 2 callers
Function
loadConfig
(filePath, raw string)
src/agent/agent.go:407
↓ 2 callers
Function
loadEventsFromTestdataJSONL
loadEventsFromTestdataJSONL loads one JSON object per non-empty line.
src/rules_engine/engine_testdata_test.go:73
↓ 2 callers
Function
minDuration
(a, b time.Duration)
src/rules_engine/engine_core.go:742
↓ 2 callers
Method
neonVectorizedSearch
neonVectorizedSearch implements vectorized string search for ARM64
src/rules_engine/simd_arm64.go:70
↓ 2 callers
Function
nestedRuleInfoValue
(data map[string]interface{}, key string)
config/plugin/pushAlertToIris.go:328
↓ 2 callers
Function
newRegexCache
(maxSize int)
src/rules_engine/regex_cache.go:34
↓ 2 callers
Function
normalizeDynamicRefKeyList
(normalizedKey string, fallback []string)
src/rules_engine/engine_utils.go:310
↓ 2 callers
Function
normalizeElasticsearchVersion
normalizeElasticsearchVersion maps user-provided version string to internal version key. Supported values: "7"/"v7", "8"/"v8", otherwise default to "v
src/common/elasticsearch.go:77
↓ 2 callers
Function
normalizeProjectTestInputNode
(raw string, requirePrefix bool)
src/api/testing.go:960
↓ 2 callers
Function
normalizeTag
(value string)
config/plugin/pushAlertToIris.go:412
↓ 2 callers
Method
parseAndExpr
parseAndExpr handles: and_expr := unary_expr ( 'and' unary_expr )*
src/rules_engine/cep_condition.go:283
↓ 2 callers
Function
parseAppend
(element xml.StartElement, decoder *XMLDecoder, elementLine int)
src/rules_engine/engine_parser.go:870
↓ 2 callers
Function
parseArgs
(s string)
src/rules_engine/engine_struct.go:2209
↓ 2 callers
Function
parseIteratorChecklist
parseIteratorChecklist parses a checklist element specifically within an iterator context
src/rules_engine/engine_parser.go:427
↓ 2 callers
Function
parseNode
parseNode splits "TYPE.name" into ("TYPE", "name")
src/project/project.go:997
↓ 2 callers
Method
parseNumber
()
src/rules_engine/engine_condition.go:98
↓ 2 callers
Method
parseOrExpr
parseOrExpr handles: or_expr := and_expr ( 'or' and_expr )*
src/rules_engine/cep_condition.go:261
↓ 2 callers
Method
parsePrimary
()
src/rules_engine/engine_condition.go:113
↓ 2 callers
Method
parseSequenceExpr
parseSequenceExpr handles the lowest precedence: -> operator sequence_expr := or_expr ( '->' or_expr )*
src/rules_engine/cep_condition.go:239
↓ 2 callers
Function
parseTimestampToNs
parseTimestampToNs attempts to parse a timestamp string into unix nanoseconds. Supports: Unix seconds, Unix milliseconds, Unix microseconds, Unix nano
src/rules_engine/engine_core.go:1837
↓ 2 callers
Method
parseUnaryExpr
parseUnaryExpr handles: unary_expr := '!' unary_expr | primary
src/rules_engine/cep_condition.go:305
↓ 2 callers
Method
performHealthCheck
performHealthCheck performs the actual health check on all components
src/common/component_monitor.go:83
↓ 2 callers
Function
postJSON
postJSON sends a POST request with a JSON body and returns the response body string. Returns (body, nil) on 2xx, (body, error) on 4xx/5xx or network e
src/local_plugin/add_rule/add_rule.go:127
↓ 2 callers
Function
processValidationResponse
(response, componentType, showMessages = false)
web/src/composables/useComponentValidation.js:58
↓ 2 callers
Function
projectTestHasPendingWork
(tempProject *project.Project)
src/api/testing.go:895
↓ 2 callers
Function
projectTestRequestConfig
()
web/src/api/index.js:156
↓ 2 callers
Method
reconnectAgentInboundEdges
(edges []agentInboundEdge)
src/project/project.go:1559
↓ 2 callers
Method
reconnectRulesetInboundEdges
(edges []rulesetInboundEdge)
src/project/project.go:1497
↓ 2 callers
Method
recoverLoadPanic
(err *error)
src/plugin/plugin.go:270
↓ 2 callers
Function
registerSharedPublicRoutes
(e *echo.Echo)
src/api/routes_shared.go:29
↓ 2 callers
Function
registerSharedReadRoutes
(auth *echo.Group)
src/api/routes_shared.go:34
↓ 2 callers
Method
rememberNextExpiryLocked
(expiresAt time.Time)
src/rules_engine/engine_threshold_cache.go:32
↓ 2 callers
Method
rememberNextExpiryLocked
(expiresAt time.Time)
src/rules_engine/engine_threshold_cache.go:156
↓ 2 callers
Method
removeFromWheelSlot
removeFromWheelSlot removes a key from a specific wheel slot. Caller must hold absenceKeysMu.
src/rules_engine/cep_state.go:284
↓ 2 callers
Function
replaceFromRawPlaceholders
replaceFromRawPlaceholders scans the input string and replaces all occurrences of dynamic references starting with "_$" (e.g., _$field, _$a.b.c) with
src/rules_engine/engine_utils.go:193
↓ 2 callers
Method
resolveSkills
()
src/agent/agent.go:385
↓ 2 callers
Method
resolveStageMatchData
(match StageMatch)
src/rules_engine/engine_core.go:1897
↓ 2 callers
Function
runRulesEnginePipeline
runRulesEnginePipeline calls EngineCheck for each event in order (minimal "pipeline" without Hub).
src/rules_engine/engine_testdata_test.go:118
↓ 2 callers
Function
sanitizeOutputData
sanitizeOutputData removes internal helper fields that are only needed during rule execution.
src/rules_engine/engine_core.go:852
↓ 2 callers
Function
sanitizePathComponent
(s string)
src/rules_engine/cep_value_store.go:378
↓ 2 callers
Function
saveComponent
( componentType, componentId, content, isNewComponent = false, options = {} )
web/src/composables/useComponentSave.js:21
↓ 2 callers
Function
searchInComponentType
searchInComponentType searches within a specific component type
src/api/components.go:2369
↓ 2 callers
Method
sendHeartbeat
sendHeartbeat sends heartbeat with current version and system metrics (follower only)
src/cluster/heartbeat_simple.go:128
↓ 2 callers
Method
sendMessage
(msg map[string]interface{})
src/common/aliyun_sls.go:142
↓ 2 callers
Function
setCachedResult
setCachedResult stores result in Redis cache
src/local_plugin/threatbook/threatbook.go:226
↓ 2 callers
Function
setCachedResult
setCachedResult stores result in Redis cache
src/local_plugin/virustotal/virustotal.go:132
↓ 2 callers
Function
setCachedResult
setCachedResult stores result in Redis cache
src/local_plugin/shodan/shodan.go:138
↓ 2 callers
Function
simpleRuleFingerprintFromRule
simpleRuleFingerprintFromRule builds a coarse, order-insensitive fingerprint for a rule's basic logic. 覆盖 checklist(含 threshold 节点)和 standalone check,
src/api/components.go:2772
↓ 2 callers
Function
splitList
(value string)
config/plugin/pushAlertToIris.go:395
↓ 2 callers
Function
splitMemoryNotesFromString
(s string)
src/agent/memory_notes.go:32
↓ 2 callers
Method
sse42Contains
SSE4.2-optimized implementations (placeholder for future assembly optimization)
src/rules_engine/simd_amd64.go:154
↓ 2 callers
Function
stableKeyPart
(v interface{})
src/local_plugin/suppress_once/suppress_once.go:67
↓ 2 callers
Function
standardContains
(data, pattern string)
src/rules_engine/simd_optimizations.go:187
↓ 2 callers
Function
start
()
web/src/composables/useSmartRefresh.js:212
↓ 2 callers
Method
startWithHook
(lock bool, beforeRun func(*Project) error)
src/project/project.go:1156
↓ 2 callers
Method
startWithRetry
startWithRetry starts the project with retry mechanism for components that fail to reach running status. It must be called WITHOUT holding ProjectOper
src/project/project.go:1836
↓ 2 callers
Function
stop
()
web/src/composables/useSmartRefresh.js:266
↓ 2 callers
Method
stopInputComponents
stopInputComponents stops all input components used by this project This should be called after data processing is complete Returns a list of errors e
src/project/project.go:2190
↓ 2 callers
Method
sweepExpiredLocked
(now time.Time)
src/rules_engine/engine_threshold_cache.go:162
↓ 2 callers
Function
toInt
(v interface{})
config/plugin/pushUrentAlertByLark.go:300
↓ 2 callers
Function
toLower
(b byte)
src/rules_engine/simd_optimizations.go:275
↓ 2 callers
Method
trackActiveProcess
(cancel context.CancelFunc)
src/agent/agent_loop.go:302
↓ 2 callers
Method
trackNodeInRedis
trackNodeInRedis tracks a node in Redis for node enumeration (48 hours TTL)
src/cluster/heartbeat_simple.go:303
↓ 2 callers
Function
truncateString
truncateString truncates a string to the specified length
src/local_plugin/shodan/shodan.go:297
↓ 2 callers
Function
unauthorizedError
(c echo.Context, message string)
src/api/http_helpers.go:21
↓ 2 callers
Function
urgentPhone
(msgid string, userid string, token string)
config/plugin/pushUrentAlertByLark.go:236
↓ 2 callers
Function
validateChecklist
validateChecklist validates checklist elements
src/rules_engine/engine_struct.go:860
↓ 2 callers
Method
validateComponent
validateComponent validates a single component exists in the system (unified approach)
src/project/project.go:1124
↓ 2 callers
Function
validateQueryValue
validateQueryValue validates the query value based on query type
src/local_plugin/threatbook/threatbook.go:187
↓ 2 callers
Method
waitForCompleteDataProcessingWithTimeout
waitForCompleteDataProcessingWithTimeout waits for all data to be fully processed with a given timeout
src/project/project.go:2230
↓ 1 callers
Method
Acquire
Acquire attempts to acquire the distributed lock
src/common/redis.go:529
↓ 1 callers
Method
ApplyBatchUpdates
(dailyStatsData []DailyStatsData)
src/common/daily_stats_manager.go:296
↓ 1 callers
Method
AssistantMessage
AssistantMessage converts the ChatResult back into a Message for the conversation.
src/agent/llm.go:90
↓ 1 callers
Function
CheckDeletedIntention
(i *Instruction)
src/cluster/instruction_sync.go:45
↓ 1 callers
Function
ClearGlobalRegexResultCache
ClearGlobalRegexResultCache is now deprecated - kept for compatibility Use cache.Clear() directly on specific cache instances
src/rules_engine/regex_result_cache.go:224
↓ 1 callers
Method
CompactAndSaveInstructions
(new *Instruction)
src/cluster/instruction_sync.go:317
↓ 1 callers
Method
CopyDownstream
()
src/rules_engine/engine_struct.go:234
↓ 1 callers
Method
DelTokenVal
()
src/rules_engine/engine_condition.go:258
↓ 1 callers
Function
DeleteInput
(id string)
src/project/project_struct.go:393
↓ 1 callers
Function
DeleteProject
(id string)
src/project/project_struct.go:353
↓ 1 callers
Function
DeleteRuleset
(id string)
src/project/project_struct.go:461
↓ 1 callers
Method
DeleteSnapshot
(ref string)
src/rules_engine/cep_value_store.go:23
↓ 1 callers
Method
Description
()
src/skill/skill.go:35
↓ 1 callers
Function
DetectElasticsearchVersion
DetectElasticsearchVersion tries to determine ES major version from the cluster root response. It returns "v7", "v8", or "v9" on success.
src/common/elasticsearch.go:100
↓ 1 callers
Function
EnsureTopicExists
(cl *kgo.Client, topic string)
src/common/kafka.go:80
← previous
next →
501–600 of 2,165, ranked by callers