Documentation
¶
Overview ¶
Package internal contains types for code generation. These types are exported for use by tygorgen but are not intended for direct use.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MethodMetadata ¶
type MethodMetadata struct {
Name string
Primitive string // "query", "exec", "stream"
Request reflect.Type
Response reflect.Type
}
MethodMetadata holds runtime metadata for a registered service method.
type RouteMap ¶
type RouteMap map[string]*MethodMetadata
RouteMap maps route names to their metadata.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package discover finds tygor export functions by signature.
|
Package discover finds tygor export functions by signature. |
|
Package runner executes tygor code generation by building and running a modified version of the user's package.
|
Package runner executes tygor code generation by building and running a modified version of the user's package. |
|
Package testfixtures provides types used for testing the tygorgen package.
|
Package testfixtures provides types used for testing the tygorgen package. |
|
Package tgrcontext provides the shared context key for tygor.
|
Package tgrcontext provides the shared context key for tygor. |
|
Package tygortest provides testing helpers for HTTP handlers and tygor service handlers.
|
Package tygortest provides testing helpers for HTTP handlers and tygor service handlers. |
Click to show internal directories.
Click to hide internal directories.