effects

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package effects detects boundary-crossing calls: SQL, Redis, HTTP clients, and Kafka producers. Effect nodes are the anchors of a flow - the filter pipeline never drops them, and graph extraction does not descend past them into library internals.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Effect

type Effect struct {
	Type      string // "sql" | "redis" | "http" | "kafka" | "grpc" | "security" | "storage"
	Detail    string // query text, command, or method name - best effort
	Topic     string // resolved Kafka topic, "" if not applicable/unresolved
	TopicExpr string // source-level hint when the topic is dynamic
}

func Detect

func Detect(info *ssax.CalleeInfo, site ssa.CallInstruction) *Effect

Detect reports the effect a call site performs, or nil.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL