codegen

package
v0.6.8 Latest Latest
Warning

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

Go to latest
Published: May 22, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewModule

func NewModule(plugin string, protocol string, templates map[string]string) pgs.Module

NewModule creates a new proto module

func NewTemplate

func NewTemplate(file string, imports map[string]meta.PackageMeta) *template.Template

NewTemplate creates a new Template for the given template file

Types

type Module

type Module struct {
	*pgs.ModuleBase
	// contains filtered or unexported fields
}

Module is the code generation module

func (*Module) Execute

func (m *Module) Execute(targets map[string]pgs.File, packages map[string]pgs.Package) []pgs.Artifact

Execute executes the code generator

func (*Module) InitContext

func (m *Module) InitContext(c pgs.BuildContext)

InitContext initializes the module context

func (*Module) Name

func (m *Module) Name() string

Name returns the module name

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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