Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type ServerGenerator ¶
type ServerGenerator struct {
// contains filtered or unexported fields
}
type ServerGeneratorInterface ¶
type ServerGeneratorInterface interface { GetContextParameter() jen.Code WriteRegisterRoutes(name string, service *spec.ServiceSpec) jen.Code WriteHandlerFunctionStub(handleType string, endpointName string, endpoint *spec.Endpoint) jen.Code WriteErrReturn(code int, errName string) jen.Code WriteErrReturnWithJenCode(code int, jc jen.Code) jen.Code WriteJsonReturn(valueName string) jen.Code WriteBinaryReturn(valueName string) jen.Code WriteStatusCodeReturn() jen.Code WriteCookieReader(varName string, cookieName string) jen.Code WriteHeaderReader(varName string, headerName string) jen.Code WritePathParamReader(varName string, argName string) jen.Code WriteQueryParamReader(varName string, argName string) jen.Code WriteQueryParamArrayReader(varName string, ty types.TypeInterface) jen.Code WriteBodyReader(varName string, ty types.TypeInterface) jen.Code }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.