Documentation ¶
Overview ¶
Package handlers manages the exported methods in the service handler code adding/removing exported methods to match the service definition.
Index ¶
Constants ¶
View Source
const HookPath = "handlers/hooks.gotemplate"
View Source
const MiddlewaresPath = "handlers/middlewares.gotemplate"
MiddlewaresPath is the path to the middleware gotemplate file.
View Source
const ServerHandlerPath = "handlers/handlers.gotemplate"
ServerHadlerPath is the relative path to the server handler template file
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HookRender ¶
type HookRender struct {
// contains filtered or unexported fields
}
type Middlewares ¶
type Middlewares struct {
// contains filtered or unexported fields
}
Middlewares satisfies the gengokit.Renderable interface to render middlewares.
func NewMiddlewares ¶
func NewMiddlewares() *Middlewares
NewMiddlewares returns a Renderable that renders the middlewares.go file.
func (*Middlewares) Load ¶
func (m *Middlewares) Load(prev io.Reader)
Load loads the previous version of the middleware file.
Click to show internal directories.
Click to hide internal directories.