Documentation
¶
Overview ¶
Command gen writes the files that come from the endpoint groups: for each group that Uses a type, its gen/api.yaml, the routes in gen/api.go and the decoders in gen/decode.go, and internal/controller/endpoints/all/gen, which registers every group's routes. go generate in internal/controller/endpoints/all runs it.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package genutil holds what the endpoint layer's writers share: the fields of an input as JSON reads them, and the house layout of a jen group.
|
Package genutil holds what the endpoint layer's writers share: the fields of an input as JSON reads them, and the house layout of a jen group. |
|
Package routegen writes the route table and the decoders of an endpoint group, for the endpoint generator and the behavior generator alike, so a behavior's routes are the same code as an endpoint's.
|
Package routegen writes the route table and the decoders of an endpoint group, for the endpoint generator and the behavior generator alike, so a behavior's routes are the same code as an endpoint's. |
|
Package specgen writes the specs as the repository keeps them, for the endpoint generator and the behavior generator alike: the spec of each group, and the full spec of the API, which joins them.
|
Package specgen writes the specs as the repository keeps them, for the endpoint generator and the behavior generator alike: the spec of each group, and the full spec of the API, which joins them. |