internal

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2020 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const Import = "github.com/reddec/jsonrpc2"

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface struct {
	Name    string
	Comment string
	Methods []*Method
}

func CollectInfo

func CollectInfo(file *ast.File, fs *token.FileSet) (*Interface, error)

type Method

type Method struct {
	Name       string
	Definition *ast.Field
	Type       *ast.FuncType
	// contains filtered or unexported fields
}

func (*Method) Qual

func (mg *Method) Qual(namespace string) string

type WrapperGenerator

type WrapperGenerator struct {
	TypeName  string
	FuncName  string
	Namespace string
}

func (*WrapperGenerator) Generate

func (wg *WrapperGenerator) Generate(filename string) (jen.Code, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL