proto

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PatchProtoFile

func PatchProtoFile(path, goPackage string) error

Types

type ProtoFilePatcher

type ProtoFilePatcher struct {
	// specify a function that returns the go_package option the patched proto file will use
	PatchGoPackage func(path string) string

	// the root of the vendor dir where the proto files will be patched recursively
	RootDir string
	// patch files matching these patterns
	MatchPatterns []string
}

ProtoFilePatcher updates vendored proto files with custom patches.

func (ProtoFilePatcher) PatchProtoFiles

func (p ProtoFilePatcher) PatchProtoFiles() error

Jump to

Keyboard shortcuts

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