Versions in this module Expand all Collapse all v1 v1.24.0 Feb 9, 2023 Changes in this version + type CompileResult struct + Failures []*text.Failure + FileDescriptorSets FileDescriptorSets + type Compiler interface + Compile func(*file.ProtoSet) (*CompileResult, error) + ProtocCommands func(*file.ProtoSet) ([]string, error) + func NewCompiler(options ...CompilerOption) Compiler + type CompilerOption func(*compiler) + func CompilerWithCachePath(cachePath string) CompilerOption + func CompilerWithFileDescriptorSet() CompilerOption + func CompilerWithFileDescriptorSetFullControl(includeImports bool, includeSourceInfo bool) CompilerOption + func CompilerWithGen() CompilerOption + func CompilerWithLogger(logger *zap.Logger) CompilerOption + func CompilerWithProtocBinPath(protocBinPath string) CompilerOption + func CompilerWithProtocURL(protocURL string) CompilerOption + func CompilerWithProtocWKTPath(protocWKTPath string) CompilerOption + type Downloader interface + Delete func() error + Download func() (string, error) + ProtocPath func() (string, error) + WellKnownTypesIncludePath func() (string, error) + func NewDownloader(config settings.Config, options ...DownloaderOption) (Downloader, error) + type DownloaderOption func(*downloader) + func DownloaderWithCachePath(cachePath string) DownloaderOption + func DownloaderWithLogger(logger *zap.Logger) DownloaderOption + func DownloaderWithProtocBinPath(protocBinPath string) DownloaderOption + func DownloaderWithProtocURL(protocURL string) DownloaderOption + func DownloaderWithProtocWKTPath(protocWKTPath string) DownloaderOption + type FileDescriptorSet struct + DirPath string + ProtoFiles []*file.ProtoFile + ProtoSet *file.ProtoSet + type FileDescriptorSets []*FileDescriptorSet + func (f FileDescriptorSets) Unwrap() []*descriptor.FileDescriptorSet