httplink

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPCallSite

type HTTPCallSite struct {
	Path                string
	Method              string // best-effort: "GET", "POST", etc. or "" if unknown
	SourceName          string
	SourceQualifiedName string
	SourceLabel         string // "Function", "Method", or "Module"
	IsAsync             bool   // true when source uses async dispatch keywords
}

HTTPCallSite represents a discovered HTTP call site.

type HTTPLink struct {
	CallerQN    string
	CallerLabel string
	HandlerQN   string
	URLPath     string
	EdgeType    string // "HTTP_CALLS" or "ASYNC_CALLS"
}

HTTPLink represents a matched HTTP call from caller to handler.

type Linker

type Linker struct {
	// contains filtered or unexported fields
}

Linker discovers cross-service HTTP calls and creates HTTP_CALLS edges.

func New

func New(s *store.Store, project string) *Linker

New creates a new HTTP Linker.

func (*Linker) Run

func (l *Linker) Run() ([]HTTPLink, error)

Run executes the HTTP linking pass.

type RouteHandler

type RouteHandler struct {
	Path              string
	Method            string
	FunctionName      string
	QualifiedName     string
	HandlerRef        string // resolved handler function reference (e.g. "h.CreateOrder")
	ResolvedHandlerQN string // set by createRegistrationCallEdges — actual handler QN
}

RouteHandler represents a discovered HTTP route handler.

Jump to

Keyboard shortcuts

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