generator

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

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

Generator represents a protoc generator module

func New

func New() *Generator

New returns a new protoc generator module

func (*Generator) Execute

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

Execute executes the generator module

func (*Generator) InitContext

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

InitContext initialises the generator module context

func (*Generator) Name

func (m *Generator) Name() string

Name returns the generator module name

Jump to

Keyboard shortcuts

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