protoc

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package protoc provides utilities for constructing protoc command arguments.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(apiServiceDir string, config ConfigProvider, sourceDir string, outputConfig *OutputConfig) ([]string, error)

Build constructs the full protoc command arguments for a given API.

Types

type ConfigProvider

type ConfigProvider interface {
	ServiceYAML() string
	GapicYAML() string
	GRPCServiceConfig() string
	Transport() string
	HasRESTNumericEnums() bool
	HasGAPIC() bool
}

ConfigProvider is an interface that describes the configuration needed by the Build function. This allows the protoc package to be decoupled from the source of the configuration (e.g., Bazel files, JSON, etc.).

type OutputConfig

type OutputConfig struct {
	GAPICDir string
	GRPCDir  string
	ProtoDir string
}

OutputConfig provides paths to directories to be used for protoc output.

Jump to

Keyboard shortcuts

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