implement

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2020 License: MIT Imports: 6 Imported by: 0

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

func Generate

func Generate(f *protogen.File, implPath, pkgPath, module string) error

Types

type HandlerData

type HandlerData struct {
	GoPackage string
	Service   string
	Desc      string
	Imports   map[string]string
}

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)

Jump to

Keyboard shortcuts

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