execprotoc

package
v0.0.0-...-e7849b2 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package execprotoc provides an interface for interacting with proto requiring only paths to files on disk

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CodeGeneratorRequest

func CodeGeneratorRequest(protoPaths, gopath []string) (*plugin.CodeGeneratorRequest, error)

CodeGeneratorRequest returns a protoc CodeGeneratorRequest from running protoc on protoPaths

func GeneratePBDotGo

func GeneratePBDotGo(protoPaths, gopath []string, outDir string) error

GeneratePBDotGo creates .pb.go files from the passed protoPaths and writes them to outDir.

func ServiceFile

func ServiceFile(req *plugin.CodeGeneratorRequest, protoFileDir string) (*os.File, error)

ServiceFile returns the file in req that contains a service declaration.

Types

This section is empty.

Jump to

Keyboard shortcuts

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