genclient

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: MIT Imports: 19 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Analyzer = &analysis.Analyzer{
	Name: "tanukirpc",
	Doc:  "This is a static analysis tool for tanukirpc.",
	Run:  run,
	Requires: []*analysis.Analyzer{
		inspect.Analyzer,
		buildssa.Analyzer,
	},
	ResultType: reflect.TypeFor[*AnalyzerResult](),
}
View Source
var ShowPathAnalyzer = &analysis.Analyzer{
	Name: "showpaths",
	Doc:  "show paths",
	Run:  runShowPaths,
	Requires: []*analysis.Analyzer{
		Analyzer,
	},
}
View Source
var TypeScriptClientGenerator = &analysis.Analyzer{
	Name: "gentypescript",
	Doc:  "generate TypeScript client code",
	Run:  generateTypeScriptClient,
	Requires: []*analysis.Analyzer{
		Analyzer,
	},
	ResultType: reflect.TypeFor[*bytes.Buffer](),
}

Functions

func AnalyzeTarget

func AnalyzeTarget[Reg any](router *tanukirpc.Router[Reg])

Types

type AnalyzerResult

type AnalyzerResult struct {
	RoutePaths []RoutePath
}

type HandlerType

type HandlerType interface {
	Req() types.Type
	Res() types.Type
	Reg() types.Type
}

type RoutePath

type RoutePath interface {
	Path() string
	Method() string
	Handler() HandlerType
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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