Documentation
¶
Overview ¶
Package internal generated by go-bindata.// sources: template.gotemplate python.gotemplate js.gotemplate ts.gotemplate method_doc.gotemplate ktor.gotemplate
Index ¶
- Constants
- func Asset(name string) ([]byte, error)
- func AssetDir(name string) ([]string, error)
- func AssetInfo(name string) (os.FileInfo, error)
- func AssetNames() []string
- func FindPackage(dir string) (string, error)
- func MustAsset(name string) []byte
- func RestoreAsset(dir, name string) error
- func RestoreAssets(dir, name string) error
- type Case
- type GoType
- type Interface
- type LocalType
- type Method
- type Python
- type WrapperGenerator
Constants ¶
const Import = "github.com/reddec/jsonrpc2"
Variables ¶
This section is empty.
Functions ¶
func Asset ¶ added in v0.1.2
Asset loads and returns the asset for the given name. It returns an error if the asset could not be found or could not be loaded.
func AssetDir ¶ added in v0.1.2
AssetDir returns the file names below a certain directory embedded in the file by go-bindata. For example if you run go-bindata on data/... and data contains the following hierarchy:
data/ foo.txt img/ a.png b.png
then AssetDir("data") would return []string{"foo.txt", "img"} AssetDir("data/img") would return []string{"a.png", "b.png"} AssetDir("foo.txt") and AssetDir("notexist") would return an error AssetDir("") will return []string{"data"}.
func AssetInfo ¶ added in v0.1.2
AssetInfo loads and returns the asset info for the given name. It returns an error if the asset could not be found or could not be loaded.
func AssetNames ¶ added in v0.1.2
func AssetNames() []string
AssetNames returns the names of the assets.
func FindPackage ¶ added in v0.1.5
func MustAsset ¶ added in v0.1.2
MustAsset is like Asset but panics when Asset would return an error. It simplifies safe initialization of global variables.
func RestoreAsset ¶ added in v0.1.2
RestoreAsset restores an asset under the given directory
func RestoreAssets ¶ added in v0.1.2
RestoreAssets restores an asset under the given directory recursively
Types ¶
type GoType ¶ added in v0.1.12
type GoType struct {
deepparser.Typer
}
func (*GoType) MapDefinition ¶ added in v0.1.12
func (py *GoType) MapDefinition(def *deepparser.Definition) (jen.Code, bool)
type Interface ¶
type Interface struct { Name string Comment string Methods []*Method Imports []*ast.ImportSpec }
func CollectInfo ¶
func (*Interface) LookupForImport ¶ added in v0.1.5
type LocalType ¶ added in v0.1.6
type LocalType struct { Type string Definition string IsStruct bool StructFields []*deepparser.StField Inspect *deepparser.Definition }
type Method ¶
type Method struct { Name string Definition *ast.Field Type *ast.FuncType Interface *Interface // contains filtered or unexported fields }
func (*Method) LocalTypes ¶ added in v0.1.6
func (*Method) ReturnType ¶ added in v0.1.2
type Python ¶ added in v0.1.11
type Python struct { deepparser.Typer Modules map[string]map[string]bool }
type WrapperGenerator ¶
type WrapperGenerator struct { TypeName string FuncName string Namespace string CustomHandlerMethodPrefix string CustomHandlers []string // custom handlers for types (*import@id) Case Case Interceptor bool }
func (*WrapperGenerator) Generate ¶
func (wg *WrapperGenerator) Generate(filename string) (*generationResult, error)
func (*WrapperGenerator) MustRender ¶ added in v0.1.11
func (wg *WrapperGenerator) MustRender(templateText string) string
func (*WrapperGenerator) Name ¶ added in v0.1.11
func (wg *WrapperGenerator) Name() string
func (*WrapperGenerator) Qual ¶ added in v0.1.2
func (wg *WrapperGenerator) Qual(mg *Method) string