Documentation ¶
Index ¶
Constants ¶
View Source
const ( HandlersFileName = "http_handlers.go" HandlersStructName = "HttpHandlers" HandlerStructSuffix = "Handler" )
View Source
const (
AspectSuffix = "Aspect"
)
Variables ¶
View Source
var (
HandlersStructComments = []string{
"Handlers collects all of the handlers that compose a service.",
}
)
Functions ¶
func NewHttpAspectMethodFile ¶
Types ¶
type HttpAspectMethodFile ¶
type HttpAspectMethodFile struct { *generator.BaseGenerator Meta *generator.Meta Method parser.Method // service interface's method name StructName string PbDir string }
func (*HttpAspectMethodFile) GetGenCodeFuncs ¶
func (f *HttpAspectMethodFile) GetGenCodeFuncs() []func()
type HttpHandlersFile ¶
type HttpHandlersFile struct { *generator.BaseGenerator Meta *generator.Meta StructName string PbDir string }
func (*HttpHandlersFile) GetGenCodeFuncs ¶
func (f *HttpHandlersFile) GetGenCodeFuncs() []func()
Click to show internal directories.
Click to hide internal directories.