gentsrpc

package
v0.0.0-...-311940d Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2021 License: MIT Imports: 11 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 {
	// contains filtered or unexported fields
}

Generator processes proto descriptors and generates flow type definitions.

func New

func New(reg *descriptor.Registry) *Generator

New returns a new generator which generates flowtype type definition files.

func (*Generator) Generate

func (g *Generator) Generate(targets []*descriptor.File, opts GeneratorOptions) ([]*plugin.CodeGeneratorResponse_File, error)

Generate processes the given proto files and produces flowtype output.

type GeneratorOptions

type GeneratorOptions struct {
	InputID string
}

GeneratorOptions describes output parameters

Jump to

Keyboard shortcuts

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