gengateway

package
v1.4.9 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseRequest

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

ParseRequest parses a code generator request from a proto Message.

Types

type Generator

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

func New

func New(reg *descriptor2.Registry, useRequestContext bool, registerFuncSuffix string,
	allowPatchFeature, standalone bool) Generator

New returns a new generator which generates grpc gateway files.

Jump to

Keyboard shortcuts

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