Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MapEntryName ¶
See https://github.com/protocolbuffers/protobuf-go/blob/v1.32.0/internal/strs/strings.go#L125
func StartWithUpper ¶
func ToProtoFieldName ¶
func ToProtoIdentifier ¶
Types ¶
type Comments ¶
type Comments struct {
// contains filtered or unexported fields
}
Comments holds all the comments for our messages / fields
func (*Comments) GetComment ¶
func (*Comments) SetComment ¶
type OpenAPIConverter ¶
type OpenAPIConverter struct { // Comments holds field and message level comments Comments // contains filtered or unexported fields }
func NewOpenAPIConverter ¶
func NewOpenAPIConverter(protoPackageName string, doc *openapi.Document) *OpenAPIConverter
func (*OpenAPIConverter) Convert ¶
func (c *OpenAPIConverter) Convert(ctx context.Context) (*descriptorpb.FileDescriptorProto, error)
type ProtoWriter ¶
type ProtoWriter struct {
// contains filtered or unexported fields
}
func NewProtoWriter ¶
func NewProtoWriter(w io.Writer) *ProtoWriter
func (*ProtoWriter) Error ¶
func (p *ProtoWriter) Error() error
func (*ProtoWriter) SetComments ¶
func (p *ProtoWriter) SetComments(comments *Comments)
func (*ProtoWriter) SetProtoVersion ¶
func (p *ProtoWriter) SetProtoVersion(protoVersion int)
func (*ProtoWriter) WriteFile ¶
func (p *ProtoWriter) WriteFile(file protoreflect.FileDescriptor)
Click to show internal directories.
Click to hide internal directories.