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 ¶
OutputConfig provides paths to directories to be used for protoc output.
Click to show internal directories.
Click to hide internal directories.