Documentation ¶
Index ¶
- func LoadProtosetFile(filepath string) ([]*desc.FileDescriptor, error)
- func NewOpenapiInfoObject(title string, version string) openapiInfoObject
- func NewSwaggerObject() *openapiSwaggerObject
- func Paths(fds []*desc.FileDescriptor) (openapiPathsObject, error)
- func Tags(fds []*desc.FileDescriptor) (tags []string)
- func WriteSwaggerJsonToFile(swagger *openapiSwaggerObject) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadProtosetFile ¶
func LoadProtosetFile(filepath string) ([]*desc.FileDescriptor, error)
加载protoset
func NewOpenapiInfoObject ¶
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 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. |
Click to show internal directories.
Click to hide internal directories.