generator

package
v0.0.0-...-be65273 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	BaseURL  *string
	Version  *string
	Naming   *string
	EnumType *string
}

type JSONSchemaGenerator

type JSONSchemaGenerator struct {
	// contains filtered or unexported fields
}

JSONSchemaGenerator holds internal state needed to generate the JSON Schema documents for a transcoded Protocol Buffer service.

func NewJSONSchemaGenerator

func NewJSONSchemaGenerator(plugin *protogen.Plugin, conf Configuration) *JSONSchemaGenerator

NewJSONSchemaGenerator creates a new generator for a protoc plugin invocation.

func (*JSONSchemaGenerator) Run

func (g *JSONSchemaGenerator) Run() error

Run runs the generator.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL