generator

package
v0.0.0-...-26bbc2a Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseRequest

func ParseRequest(r io.Reader) (*plugin.CodeGeneratorRequest, error)

ParseRequest read io.Reader and convert it into CodeGeneratorRequest

Types

type Generator

type Generator interface {
	// Generate generates output files from input .proto files.
	Generate(targets []*descriptor.File) ([]*plugin.CodeGeneratorResponse_File, error)
}

Generator is an abstraction of code generators.

func New

func New(reg *descriptor.Registry) []Generator

New return Generator interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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