routegen

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: MIT Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decoders

func Decoders(
	f *jen.File,
	g *endpoint.Group,
)

Decoders writes gen/decode.go: one function for each method that reads its input from the path, the query and the body, and validates it.

func Routes

func Routes(
	f *jen.File,
	g *endpoint.Group,
	pkg string,
)

Routes writes gen/api.go: the group's routes, each with its verb, its echo path, its permission and the handler that Serve makes, and the init that registers them.

Types

This section is empty.

Jump to

Keyboard shortcuts

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