openapi

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2021 License: GPL-3.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadProtosetFile

func LoadProtosetFile(filepath string) ([]*desc.FileDescriptor, error)

加载protoset

func NewOpenapiInfoObject

func NewOpenapiInfoObject(title string, version string) openapiInfoObject

NewOpenapiInfoObject 生成OpenAPI info

"info":{
    "title":"grpc_transcoding_http.proto",
    "version":"version not set"
},

func NewSwaggerObject

func NewSwaggerObject() *openapiSwaggerObject

func Paths

func Paths(fds []*desc.FileDescriptor) (openapiPathsObject, error)

func Tags

func Tags(fds []*desc.FileDescriptor) (tags []string)

获取protoset 的Path

func WriteSwaggerJsonToFile

func WriteSwaggerJsonToFile(swagger *openapiSwaggerObject) error

Types

This section is empty.

Directories

Path Synopsis
Package generator provides an abstract interface to code generators.
Package generator provides an abstract interface to code generators.
Package genopenapi provides a code generator for OpenAPI v2.
Package genopenapi provides a code generator for OpenAPI v2.
Package runtime contains runtime helper functions used by servers which protoc-gen-grpc-gateway generates.
Package runtime contains runtime helper functions used by servers which protoc-gen-grpc-gateway generates.
Package utilities provides members for internal use in grpc-gateway.
Package utilities provides members for internal use in grpc-gateway.

Jump to

Keyboard shortcuts

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