stubgen

package
v0.9.25 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2022 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GolangStub

func GolangStub(desc *desc.Stub) (string, error)

Types

type GenFunc added in v0.9.10

type GenFunc func(stub *desc.Stub) (string, error)

GenFunc is the function which generates the final code. For example to generate golang code use GolangStub

type Generator added in v0.9.10

type Generator struct {
	// contains filtered or unexported fields
}

func New added in v0.9.10

func New(pkgName string, tags ...string) *Generator

func (*Generator) Generate added in v0.9.10

func (g *Generator) Generate(desc ...desc.ServiceDesc) error

func (*Generator) MustGenerate added in v0.9.10

func (g *Generator) MustGenerate(desc ...desc.ServiceDesc)

func (*Generator) SetFunc added in v0.9.10

func (g *Generator) SetFunc(gf GenFunc) *Generator

Jump to

Keyboard shortcuts

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