Documentation ¶
Index ¶
Constants ¶
View Source
const HandlerTemplate = `` /* 580-byte string literal not displayed */
View Source
const MethodTemplate = `` /* 344-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HandlerData ¶
func NewHandlerData ¶
func NewHandlerData(pkg, srv string) *HandlerData
func (*HandlerData) AddImport ¶
func (d *HandlerData) AddImport(alias, path string)
type MethodData ¶
type MethodData struct { GoPackage string Name string Input string Output string Imports map[string]string }
func NewMethodData ¶
func NewMethodData() *MethodData
func (*MethodData) AddImport ¶
func (m *MethodData) AddImport(alias, path string)
func (*MethodData) AddInput ¶
func (m *MethodData) AddInput(alias, importPath, typeName string)
func (*MethodData) AddOutput ¶
func (m *MethodData) AddOutput(alias, importPath, typeName string)
Click to show internal directories.
Click to hide internal directories.