Documentation ¶
Overview ¶
Package compiler contains tools to take openapi.* definitions and compile them into protobuf.* structures.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
Option is used to pass options to several methods
func WithAnnotation ¶
WithAnnotation creates a new Option to specify if we should add google.api.http annotation to the compiled Protocol Buffers structure
func WithPrefixEnums ¶ added in v0.2.1
prefix enum values with their enum name to prevent protobuf namespacing issues
func WithSkipRpcs ¶ added in v0.2.1
WithSkipRpcs creates a new Option to specify if we should generate services and rpcs in addition to messages
func WithWrapPrimitives ¶ added in v0.2.2
wrap primitive types with their wrapper message types see https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/wrappers.proto and https://developers.google.com/protocol-buffers/docs/proto3#default
type Parameter ¶
Parameter is used to represent a parameter.
func (*Parameter) ParameterName ¶
ParameterName returns the parameter name
func (*Parameter) ParameterNumber ¶
ParameterNumber returns the number to be assigned
func (*Parameter) ParameterType ¶
ParameterType returns the underlying protobuf.Type