mirror of
https://github.com/genuinetools/reg.git
synced 2024-07-07 13:34:17 -04:00
14 lines
463 B
Go
14 lines
463 B
Go
// Package generator provides an abstract interface to code generators.
|
|
package generator
|
|
|
|
import (
|
|
plugin "github.com/golang/protobuf/protoc-gen-go/plugin"
|
|
"github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/descriptor"
|
|
)
|
|
|
|
// Generator is an abstraction of code generators.
|
|
type Generator interface {
|
|
// Generate generates output files from input .proto files.
|
|
Generate(targets []*descriptor.File) ([]*plugin.CodeGeneratorResponse_File, error)
|
|
}
|