Documentation ¶
Index ¶
- Variables
- func NewCollector(customImports, commonImports []string) *collector
- func NewProtoCompiler(collector Collector, executor ProtocExecutor) *protoCompiler
- type Collector
- type DefaultProtocExecutor
- type ImportsExtractor
- type ImportsFetcher
- type OpenApiProtocExecutor
- type ProtoCompiler
- type ProtocExecutor
Constants ¶
This section is empty.
Variables ¶
View Source
var ( FetchImportsTimeout = func(filename string) error { return eris.Errorf("Timed out while fetching imports for proto file: [%s]", filename) } )
Functions ¶
func NewCollector ¶
func NewCollector(customImports, commonImports []string) *collector
func NewProtoCompiler ¶ added in v0.18.5
func NewProtoCompiler(collector Collector, executor ProtocExecutor) *protoCompiler
Types ¶
type DefaultProtocExecutor ¶ added in v0.19.0
type DefaultProtocExecutor struct { // The output directory OutputDir string // whether or not to do a regular go-proto generate while collecting descriptors ShouldCompileFile func(string) bool // arguments for go_out= CustomGoArgs []string // custom plugins // each will append a <plugin>_out= directive to protoc command CustomPlugins []string }
type ImportsExtractor ¶ added in v0.18.5
type ImportsExtractor interface {
FetchImportsForFile(protoFile string, importsFetcher ImportsFetcher) ([]string, error)
}
func NewSynchronizedImportsExtractor ¶ added in v0.18.5
func NewSynchronizedImportsExtractor() ImportsExtractor
type ImportsFetcher ¶ added in v0.18.5
type OpenApiProtocExecutor ¶ added in v0.19.0
type OpenApiProtocExecutor struct { OutputDir string // Whether to include descriptions in validation schemas IncludeDescriptionsInSchema bool // The maximum number of characters to include in a description // A 0 value will be interpreted as "include all characters" // Default: 0 MaxDescriptionCharacters int // Whether to assign Enum fields the `x-kubernetes-int-or-string` property // which allows the value to either be an integer or a string EnumAsIntOrString bool }
type ProtoCompiler ¶ added in v0.18.5
type ProtoCompiler interface {
CompileDescriptorsFromRoot(root string, skipDirs []string) ([]*model.DescriptorWithPath, error)
}
Click to show internal directories.
Click to hide internal directories.