Documentation ¶
Overview ¶
descriptor_renderer generates a FileDescriptorSet from a gnostic output file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunProtoGenerator ¶
func RunProtoGenerator()
This is the main function for the code generation plugin.
Types ¶
type GrpcChecker ¶
type GrpcChecker struct {
// contains filtered or unexported fields
}
func NewGrpcChecker ¶
func NewGrpcChecker(document *openapiv3.Document) *GrpcChecker
Creates a new checker.
func (*GrpcChecker) Run ¶
func (c *GrpcChecker) Run() []*plugins.Message
Runs the checker. It is a top-down approach.
type LineWriter ¶
func NewLineWriter ¶
func NewLineWriter() *LineWriter
func (*LineWriter) WriteLine ¶
func (w *LineWriter) WriteLine(line string)
type Renderer ¶
type Renderer struct { // The model holds the necessary information from the OpenAPI description. Model *surface.Model // The FileDescriptorSet that will be printed with protoreflect FdSet *dpb.FileDescriptorSet SymbolicFdSets []*dpb.FileDescriptorSet Package string // package name }
Renderer generates a .proto file based on the information inside Model.
func NewRenderer ¶
NewRenderer creates a renderer.
func (*Renderer) RenderDescriptor ¶
func (*Renderer) RenderProto ¶
Click to show internal directories.
Click to hide internal directories.