analysis

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Procedure

type Procedure struct {
	Path       string     // e.g., "user.getById"
	Type       string     // "query", "mutation", "subscription"
	InputType  types.Type // nil for void input
	OutputType types.Type
}

Procedure represents a discovered tRPC procedure registration.

type Result

type Result struct {
	Procedures []Procedure
	TypeMetas  map[string]typemap.TypeMeta
}

Result contains the full output of analysis.

func Analyze

func Analyze(patterns []string, dir string) (*Result, error)

Analyze loads the given Go package patterns and finds all tRPC procedure registrations, along with type metadata (const groups, type aliases, comments).

Jump to

Keyboard shortcuts

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