Documentation
¶
Index ¶
- Variables
- type API
- func (*API) Descriptor() ([]byte, []int)deprecated
- func (x *API) GetBasePath() string
- func (x *API) GetConsumes() []string
- func (x *API) GetContact() *Contact
- func (x *API) GetDescription() string
- func (x *API) GetExternalDocs() *ExternalDocs
- func (x *API) GetHost() string
- func (x *API) GetLicense() *License
- func (x *API) GetProduces() []string
- func (x *API) GetSchemes() []string
- func (x *API) GetTags() []*Tag
- func (x *API) GetTermsOfService() string
- func (x *API) GetTitle() string
- func (x *API) GetVersion() string
- func (*API) ProtoMessage()
- func (x *API) ProtoReflect() protoreflect.Message
- func (x *API) Reset()
- func (x *API) String() string
- type APIKey
- func (*APIKey) Descriptor() ([]byte, []int)deprecated
- func (x *APIKey) GetDescription() string
- func (x *APIKey) GetIn() string
- func (x *APIKey) GetName() string
- func (*APIKey) ProtoMessage()
- func (x *APIKey) ProtoReflect() protoreflect.Message
- func (x *APIKey) Reset()
- func (x *APIKey) String() string
- type BasicAuth
- type Contact
- func (*Contact) Descriptor() ([]byte, []int)deprecated
- func (x *Contact) GetEmail() string
- func (x *Contact) GetName() string
- func (x *Contact) GetUrl() string
- func (*Contact) ProtoMessage()
- func (x *Contact) ProtoReflect() protoreflect.Message
- func (x *Contact) Reset()
- func (x *Contact) String() string
- type Custom
- func (*Custom) Descriptor() ([]byte, []int)deprecated
- func (x *Custom) GetCustomAuthentication() string
- func (x *Custom) GetCustomAuthorization() string
- func (x *Custom) GetCustomCss() string
- func (x *Custom) GetCustomFavicon() string
- func (x *Custom) GetCustomFooter() string
- func (x *Custom) GetCustomFormatting() string
- func (x *Custom) GetCustomHeader() string
- func (x *Custom) GetCustomHtml() string
- func (x *Custom) GetCustomJs() string
- func (x *Custom) GetCustomLogo() string
- func (x *Custom) GetCustomNavigation() string
- func (x *Custom) GetCustomSearch() string
- func (x *Custom) GetCustomSidebar() string
- func (x *Custom) GetCustomTransformation() string
- func (x *Custom) GetCustomValidation() string
- func (*Custom) ProtoMessage()
- func (x *Custom) ProtoReflect() protoreflect.Message
- func (x *Custom) Reset()
- func (x *Custom) String() string
- type ExternalDocs
- func (*ExternalDocs) Descriptor() ([]byte, []int)deprecated
- func (x *ExternalDocs) GetDescription() string
- func (x *ExternalDocs) GetUrl() string
- func (*ExternalDocs) ProtoMessage()
- func (x *ExternalDocs) ProtoReflect() protoreflect.Message
- func (x *ExternalDocs) Reset()
- func (x *ExternalDocs) String() string
- type Generation
- func (*Generation) Descriptor() ([]byte, []int)deprecated
- func (x *Generation) GetAutoGenerate() bool
- func (x *Generation) GetCustomFunctionsPath() string
- func (x *Generation) GetCustomTemplatesPath() string
- func (x *Generation) GetGenerationInterval() *durationpb.Duration
- func (x *Generation) GetIncludeDeprecated() bool
- func (x *Generation) GetIncludeDescriptions() bool
- func (x *Generation) GetIncludeExamples() bool
- func (x *Generation) GetIncludeExternalDocs() bool
- func (x *Generation) GetIncludeRequestSchemas() bool
- func (x *Generation) GetIncludeResponseSchemas() bool
- func (x *Generation) GetIncludeSecurityDefinitions() bool
- func (x *Generation) GetIncludeTags() bool
- func (x *Generation) GetOutputFormat() string
- func (x *Generation) GetOutputPath() string
- func (*Generation) ProtoMessage()
- func (x *Generation) ProtoReflect() protoreflect.Message
- func (x *Generation) Reset()
- func (x *Generation) String() string
- type JWT
- func (*JWT) Descriptor() ([]byte, []int)deprecated
- func (x *JWT) GetDescription() string
- func (x *JWT) GetEnable() bool
- func (x *JWT) GetIn() string
- func (x *JWT) GetName() string
- func (*JWT) ProtoMessage()
- func (x *JWT) ProtoReflect() protoreflect.Message
- func (x *JWT) Reset()
- func (x *JWT) String() string
- type License
- type OAuth2
- func (*OAuth2) Descriptor() ([]byte, []int)deprecated
- func (x *OAuth2) GetAppName() string
- func (x *OAuth2) GetClientId() string
- func (x *OAuth2) GetClientSecret() string
- func (x *OAuth2) GetRealm() string
- func (x *OAuth2) GetScopes() []string
- func (x *OAuth2) GetUseAccessCodeFlow() bool
- func (x *OAuth2) GetUseBasicAuthentication() bool
- func (x *OAuth2) GetUseImplicitFlow() bool
- func (x *OAuth2) GetUsePasswordFlow() bool
- func (*OAuth2) ProtoMessage()
- func (x *OAuth2) ProtoReflect() protoreflect.Message
- func (x *OAuth2) Reset()
- func (x *OAuth2) String() string
- type OAuth2Config
- func (*OAuth2Config) Descriptor() ([]byte, []int)deprecated
- func (x *OAuth2Config) GetAuthorizationUrl() string
- func (x *OAuth2Config) GetDescription() string
- func (x *OAuth2Config) GetEnable() bool
- func (x *OAuth2Config) GetFlow() string
- func (x *OAuth2Config) GetScopes() map[string]string
- func (x *OAuth2Config) GetTokenUrl() string
- func (*OAuth2Config) ProtoMessage()
- func (x *OAuth2Config) ProtoReflect() protoreflect.Message
- func (x *OAuth2Config) Reset()
- func (x *OAuth2Config) String() string
- type Security
- func (*Security) Descriptor() ([]byte, []int)deprecated
- func (x *Security) GetApiKey() *APIKey
- func (x *Security) GetBasicAuth() *BasicAuth
- func (x *Security) GetDefinitions() []*SecurityDefinition
- func (x *Security) GetEnable() bool
- func (x *Security) GetGlobalRequirements() []*SecurityRequirement
- func (x *Security) GetJwt() *JWT
- func (x *Security) GetOauth2Config() *OAuth2Config
- func (*Security) ProtoMessage()
- func (x *Security) ProtoReflect() protoreflect.Message
- func (x *Security) Reset()
- func (x *Security) String() string
- type SecurityDefinition
- func (*SecurityDefinition) Descriptor() ([]byte, []int)deprecated
- func (x *SecurityDefinition) GetAuthorizationUrl() string
- func (x *SecurityDefinition) GetDescription() string
- func (x *SecurityDefinition) GetFlow() string
- func (x *SecurityDefinition) GetIn() string
- func (x *SecurityDefinition) GetName() string
- func (x *SecurityDefinition) GetNameIn() string
- func (x *SecurityDefinition) GetScopes() map[string]string
- func (x *SecurityDefinition) GetTokenUrl() string
- func (x *SecurityDefinition) GetType() string
- func (*SecurityDefinition) ProtoMessage()
- func (x *SecurityDefinition) ProtoReflect() protoreflect.Message
- func (x *SecurityDefinition) Reset()
- func (x *SecurityDefinition) String() string
- type SecurityRequirement
- func (*SecurityRequirement) Descriptor() ([]byte, []int)deprecated
- func (x *SecurityRequirement) GetName() string
- func (x *SecurityRequirement) GetScopes() []string
- func (*SecurityRequirement) ProtoMessage()
- func (x *SecurityRequirement) ProtoReflect() protoreflect.Message
- func (x *SecurityRequirement) Reset()
- func (x *SecurityRequirement) String() string
- type Server
- func (*Server) Descriptor() ([]byte, []int)deprecated
- func (x *Server) GetDescription() string
- func (x *Server) GetUrl() string
- func (x *Server) GetVariables() []*ServerVariable
- func (*Server) ProtoMessage()
- func (x *Server) ProtoReflect() protoreflect.Message
- func (x *Server) Reset()
- func (x *Server) String() string
- type ServerVariable
- func (*ServerVariable) Descriptor() ([]byte, []int)deprecated
- func (x *ServerVariable) GetDefaultValue() string
- func (x *ServerVariable) GetDescription() string
- func (x *ServerVariable) GetEnumValues() []string
- func (x *ServerVariable) GetName() string
- func (*ServerVariable) ProtoMessage()
- func (x *ServerVariable) ProtoReflect() protoreflect.Message
- func (x *ServerVariable) Reset()
- func (x *ServerVariable) String() string
- type Swagger
- func (*Swagger) Descriptor() ([]byte, []int)deprecated
- func (x *Swagger) GetApi() *API
- func (x *Swagger) GetCustom() *Custom
- func (x *Swagger) GetEnable() bool
- func (x *Swagger) GetGeneration() *Generation
- func (x *Swagger) GetSecurity() *Security
- func (x *Swagger) GetServer() *Server
- func (x *Swagger) GetUi() *UI
- func (*Swagger) ProtoMessage()
- func (x *Swagger) ProtoReflect() protoreflect.Message
- func (x *Swagger) Reset()
- func (x *Swagger) String() string
- type Tag
- type UI
- func (*UI) Descriptor() ([]byte, []int)deprecated
- func (x *UI) GetCustomCssUrl() string
- func (x *UI) GetCustomJsUrl() string
- func (x *UI) GetDeepLinking() bool
- func (x *UI) GetDescription() string
- func (x *UI) GetEnable() bool
- func (x *UI) GetOauth2() *OAuth2
- func (x *UI) GetPath() string
- func (x *UI) GetRequestInterceptor() bool
- func (x *UI) GetResponseInterceptor() bool
- func (x *UI) GetSyntaxHighlighting() bool
- func (x *UI) GetTheme() string
- func (x *UI) GetTitle() string
- func (x *UI) GetTryItOutEnabled() bool
- func (x *UI) GetVersion() string
- func (*UI) ProtoMessage()
- func (x *UI) ProtoReflect() protoreflect.Message
- func (x *UI) Reset()
- func (x *UI) String() string
Constants ¶
This section is empty.
Variables ¶
var File_swagger_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// API title
Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
// API description
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
// API version
Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
// API terms of service
TermsOfService string `protobuf:"bytes,4,opt,name=terms_of_service,json=termsOfService,proto3" json:"terms_of_service,omitempty"`
// API contact information
Contact *Contact `protobuf:"bytes,5,opt,name=contact,proto3" json:"contact,omitempty"`
// API license information
License *License `protobuf:"bytes,6,opt,name=license,proto3" json:"license,omitempty"`
// API host
Host string `protobuf:"bytes,7,opt,name=host,proto3" json:"host,omitempty"`
// API base path
BasePath string `protobuf:"bytes,8,opt,name=base_path,json=basePath,proto3" json:"base_path,omitempty"`
// API schemes (http, https, ws, wss)
Schemes []string `protobuf:"bytes,9,rep,name=schemes,proto3" json:"schemes,omitempty"`
// API consumes (content types)
Consumes []string `protobuf:"bytes,10,rep,name=consumes,proto3" json:"consumes,omitempty"`
// API produces (content types)
Produces []string `protobuf:"bytes,11,rep,name=produces,proto3" json:"produces,omitempty"`
// API tags
Tags []*Tag `protobuf:"bytes,12,rep,name=tags,proto3" json:"tags,omitempty"`
// API external docs
ExternalDocs *ExternalDocs `protobuf:"bytes,13,opt,name=external_docs,json=externalDocs,proto3" json:"external_docs,omitempty"`
// contains filtered or unexported fields
}
API documentation configuration
func (*API) Descriptor
deprecated
func (*API) GetBasePath ¶
func (*API) GetConsumes ¶
func (*API) GetContact ¶
func (*API) GetDescription ¶
func (*API) GetExternalDocs ¶
func (x *API) GetExternalDocs() *ExternalDocs
func (*API) GetLicense ¶
func (*API) GetProduces ¶
func (*API) GetSchemes ¶
func (*API) GetTermsOfService ¶
func (*API) GetVersion ¶
func (*API) ProtoMessage ¶
func (*API) ProtoMessage()
func (*API) ProtoReflect ¶
func (x *API) ProtoReflect() protoreflect.Message
type APIKey ¶
type APIKey struct {
// API key name
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// API key in (header, query, cookie)
In string `protobuf:"bytes,2,opt,name=in,proto3" json:"in,omitempty"`
// API key description
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// contains filtered or unexported fields
}
API key configuration
func (*APIKey) Descriptor
deprecated
func (*APIKey) GetDescription ¶
func (*APIKey) ProtoMessage ¶
func (*APIKey) ProtoMessage()
func (*APIKey) ProtoReflect ¶
func (x *APIKey) ProtoReflect() protoreflect.Message
type BasicAuth ¶
type BasicAuth struct {
// Enable basic authentication
Enable bool `protobuf:"varint,1,opt,name=enable,proto3" json:"enable,omitempty"`
// Basic auth description
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
// contains filtered or unexported fields
}
Basic authentication configuration
func (*BasicAuth) Descriptor
deprecated
func (*BasicAuth) GetDescription ¶
func (*BasicAuth) ProtoMessage ¶
func (*BasicAuth) ProtoMessage()
func (*BasicAuth) ProtoReflect ¶
func (x *BasicAuth) ProtoReflect() protoreflect.Message
type Contact ¶
type Contact struct {
// Contact name
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Contact URL
Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
// Contact email
Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
// contains filtered or unexported fields
}
Contact information
func (*Contact) Descriptor
deprecated
func (*Contact) ProtoMessage ¶
func (*Contact) ProtoMessage()
func (*Contact) ProtoReflect ¶
func (x *Contact) ProtoReflect() protoreflect.Message
type Custom ¶
type Custom struct {
// Custom CSS
CustomCss string `protobuf:"bytes,1,opt,name=custom_css,json=customCss,proto3" json:"custom_css,omitempty"`
// Custom JavaScript
CustomJs string `protobuf:"bytes,2,opt,name=custom_js,json=customJs,proto3" json:"custom_js,omitempty"`
// Custom HTML
CustomHtml string `protobuf:"bytes,3,opt,name=custom_html,json=customHtml,proto3" json:"custom_html,omitempty"`
// Custom favicon
CustomFavicon string `protobuf:"bytes,4,opt,name=custom_favicon,json=customFavicon,proto3" json:"custom_favicon,omitempty"`
// Custom logo
CustomLogo string `protobuf:"bytes,5,opt,name=custom_logo,json=customLogo,proto3" json:"custom_logo,omitempty"`
CustomFooter string `protobuf:"bytes,6,opt,name=custom_footer,json=customFooter,proto3" json:"custom_footer,omitempty"`
// Custom header
CustomHeader string `protobuf:"bytes,7,opt,name=custom_header,json=customHeader,proto3" json:"custom_header,omitempty"`
CustomNavigation string `protobuf:"bytes,8,opt,name=custom_navigation,json=customNavigation,proto3" json:"custom_navigation,omitempty"`
// Custom sidebar
CustomSidebar string `protobuf:"bytes,9,opt,name=custom_sidebar,json=customSidebar,proto3" json:"custom_sidebar,omitempty"`
// Custom search
CustomSearch string `protobuf:"bytes,10,opt,name=custom_search,json=customSearch,proto3" json:"custom_search,omitempty"`
// Custom authentication
CustomAuthentication string `protobuf:"bytes,11,opt,name=custom_authentication,json=customAuthentication,proto3" json:"custom_authentication,omitempty"`
// Custom authorization
CustomAuthorization string `protobuf:"bytes,12,opt,name=custom_authorization,json=customAuthorization,proto3" json:"custom_authorization,omitempty"`
// Custom validation
CustomValidation string `protobuf:"bytes,13,opt,name=custom_validation,json=customValidation,proto3" json:"custom_validation,omitempty"`
// Custom transformation
CustomTransformation string `protobuf:"bytes,14,opt,name=custom_transformation,json=customTransformation,proto3" json:"custom_transformation,omitempty"`
// Custom formatting
CustomFormatting string `protobuf:"bytes,15,opt,name=custom_formatting,json=customFormatting,proto3" json:"custom_formatting,omitempty"`
// contains filtered or unexported fields
}
Custom configuration
func (*Custom) Descriptor
deprecated
func (*Custom) GetCustomAuthentication ¶
func (*Custom) GetCustomAuthorization ¶
func (*Custom) GetCustomCss ¶
func (*Custom) GetCustomFavicon ¶
func (*Custom) GetCustomFooter ¶
func (*Custom) GetCustomFormatting ¶
func (*Custom) GetCustomHeader ¶
func (*Custom) GetCustomHtml ¶
func (*Custom) GetCustomJs ¶
func (*Custom) GetCustomLogo ¶
func (*Custom) GetCustomNavigation ¶
func (*Custom) GetCustomSearch ¶
func (*Custom) GetCustomSidebar ¶
func (*Custom) GetCustomTransformation ¶
func (*Custom) GetCustomValidation ¶
func (*Custom) ProtoMessage ¶
func (*Custom) ProtoMessage()
func (*Custom) ProtoReflect ¶
func (x *Custom) ProtoReflect() protoreflect.Message
type ExternalDocs ¶
type ExternalDocs struct {
// External docs description
Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
// External docs URL
Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
// contains filtered or unexported fields
}
External documentation
func (*ExternalDocs) Descriptor
deprecated
func (*ExternalDocs) Descriptor() ([]byte, []int)
Deprecated: Use ExternalDocs.ProtoReflect.Descriptor instead.
func (*ExternalDocs) GetDescription ¶
func (x *ExternalDocs) GetDescription() string
func (*ExternalDocs) GetUrl ¶
func (x *ExternalDocs) GetUrl() string
func (*ExternalDocs) ProtoMessage ¶
func (*ExternalDocs) ProtoMessage()
func (*ExternalDocs) ProtoReflect ¶
func (x *ExternalDocs) ProtoReflect() protoreflect.Message
func (*ExternalDocs) Reset ¶
func (x *ExternalDocs) Reset()
func (*ExternalDocs) String ¶
func (x *ExternalDocs) String() string
type Generation ¶
type Generation struct {
// Enable auto-generation
AutoGenerate bool `protobuf:"varint,1,opt,name=auto_generate,json=autoGenerate,proto3" json:"auto_generate,omitempty"`
// Generation interval
GenerationInterval *durationpb.Duration `protobuf:"bytes,2,opt,name=generation_interval,json=generationInterval,proto3" json:"generation_interval,omitempty"`
// Output format (json, yaml)
OutputFormat string `protobuf:"bytes,3,opt,name=output_format,json=outputFormat,proto3" json:"output_format,omitempty"`
// Output path
OutputPath string `protobuf:"bytes,4,opt,name=output_path,json=outputPath,proto3" json:"output_path,omitempty"`
// Include deprecated APIs
IncludeDeprecated bool `protobuf:"varint,5,opt,name=include_deprecated,json=includeDeprecated,proto3" json:"include_deprecated,omitempty"`
// Include examples
IncludeExamples bool `protobuf:"varint,6,opt,name=include_examples,json=includeExamples,proto3" json:"include_examples,omitempty"`
// Include descriptions
IncludeDescriptions bool `protobuf:"varint,7,opt,name=include_descriptions,json=includeDescriptions,proto3" json:"include_descriptions,omitempty"`
// Include response schemas
IncludeResponseSchemas bool `` /* 130-byte string literal not displayed */
// Include request schemas
IncludeRequestSchemas bool `` /* 127-byte string literal not displayed */
// Include security definitions
IncludeSecurityDefinitions bool `` /* 143-byte string literal not displayed */
// Include tags
IncludeTags bool `protobuf:"varint,11,opt,name=include_tags,json=includeTags,proto3" json:"include_tags,omitempty"`
// Include external docs
IncludeExternalDocs bool `protobuf:"varint,12,opt,name=include_external_docs,json=includeExternalDocs,proto3" json:"include_external_docs,omitempty"`
// Custom templates path
CustomTemplatesPath string `protobuf:"bytes,13,opt,name=custom_templates_path,json=customTemplatesPath,proto3" json:"custom_templates_path,omitempty"`
// Custom functions path
CustomFunctionsPath string `protobuf:"bytes,14,opt,name=custom_functions_path,json=customFunctionsPath,proto3" json:"custom_functions_path,omitempty"`
// contains filtered or unexported fields
}
Documentation generation configuration
func (*Generation) Descriptor
deprecated
func (*Generation) Descriptor() ([]byte, []int)
Deprecated: Use Generation.ProtoReflect.Descriptor instead.
func (*Generation) GetAutoGenerate ¶
func (x *Generation) GetAutoGenerate() bool
func (*Generation) GetCustomFunctionsPath ¶
func (x *Generation) GetCustomFunctionsPath() string
func (*Generation) GetCustomTemplatesPath ¶
func (x *Generation) GetCustomTemplatesPath() string
func (*Generation) GetGenerationInterval ¶
func (x *Generation) GetGenerationInterval() *durationpb.Duration
func (*Generation) GetIncludeDeprecated ¶
func (x *Generation) GetIncludeDeprecated() bool
func (*Generation) GetIncludeDescriptions ¶
func (x *Generation) GetIncludeDescriptions() bool
func (*Generation) GetIncludeExamples ¶
func (x *Generation) GetIncludeExamples() bool
func (*Generation) GetIncludeExternalDocs ¶
func (x *Generation) GetIncludeExternalDocs() bool
func (*Generation) GetIncludeRequestSchemas ¶
func (x *Generation) GetIncludeRequestSchemas() bool
func (*Generation) GetIncludeResponseSchemas ¶
func (x *Generation) GetIncludeResponseSchemas() bool
func (*Generation) GetIncludeSecurityDefinitions ¶
func (x *Generation) GetIncludeSecurityDefinitions() bool
func (*Generation) GetIncludeTags ¶
func (x *Generation) GetIncludeTags() bool
func (*Generation) GetOutputFormat ¶
func (x *Generation) GetOutputFormat() string
func (*Generation) GetOutputPath ¶
func (x *Generation) GetOutputPath() string
func (*Generation) ProtoMessage ¶
func (*Generation) ProtoMessage()
func (*Generation) ProtoReflect ¶
func (x *Generation) ProtoReflect() protoreflect.Message
func (*Generation) Reset ¶
func (x *Generation) Reset()
func (*Generation) String ¶
func (x *Generation) String() string
type JWT ¶
type JWT struct {
// Enable JWT
Enable bool `protobuf:"varint,1,opt,name=enable,proto3" json:"enable,omitempty"`
// JWT description
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
// JWT name
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
// JWT in (header, query, cookie)
In string `protobuf:"bytes,4,opt,name=in,proto3" json:"in,omitempty"`
// contains filtered or unexported fields
}
JWT configuration
func (*JWT) Descriptor
deprecated
func (*JWT) GetDescription ¶
func (*JWT) ProtoMessage ¶
func (*JWT) ProtoMessage()
func (*JWT) ProtoReflect ¶
func (x *JWT) ProtoReflect() protoreflect.Message
type License ¶
type License struct {
// License name
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// License URL
Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
// contains filtered or unexported fields
}
License information
func (*License) Descriptor
deprecated
func (*License) ProtoMessage ¶
func (*License) ProtoMessage()
func (*License) ProtoReflect ¶
func (x *License) ProtoReflect() protoreflect.Message
type OAuth2 ¶
type OAuth2 struct {
// Client ID
ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
// Client secret
ClientSecret string `protobuf:"bytes,2,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"`
// Realm
Realm string `protobuf:"bytes,3,opt,name=realm,proto3" json:"realm,omitempty"`
// App name
AppName string `protobuf:"bytes,4,opt,name=app_name,json=appName,proto3" json:"app_name,omitempty"`
// Scopes
Scopes []string `protobuf:"bytes,5,rep,name=scopes,proto3" json:"scopes,omitempty"`
// Use basic authentication
UseBasicAuthentication bool `` /* 130-byte string literal not displayed */
// Use password flow
UsePasswordFlow bool `protobuf:"varint,7,opt,name=use_password_flow,json=usePasswordFlow,proto3" json:"use_password_flow,omitempty"`
// Use implicit flow
UseImplicitFlow bool `protobuf:"varint,8,opt,name=use_implicit_flow,json=useImplicitFlow,proto3" json:"use_implicit_flow,omitempty"`
// Use access code flow
UseAccessCodeFlow bool `protobuf:"varint,9,opt,name=use_access_code_flow,json=useAccessCodeFlow,proto3" json:"use_access_code_flow,omitempty"`
// contains filtered or unexported fields
}
OAuth2 configuration for Swagger UI
func (*OAuth2) Descriptor
deprecated
func (*OAuth2) GetAppName ¶
func (*OAuth2) GetClientId ¶
func (*OAuth2) GetClientSecret ¶
func (*OAuth2) GetUseAccessCodeFlow ¶
func (*OAuth2) GetUseBasicAuthentication ¶
func (*OAuth2) GetUseImplicitFlow ¶
func (*OAuth2) GetUsePasswordFlow ¶
func (*OAuth2) ProtoMessage ¶
func (*OAuth2) ProtoMessage()
func (*OAuth2) ProtoReflect ¶
func (x *OAuth2) ProtoReflect() protoreflect.Message
type OAuth2Config ¶
type OAuth2Config struct {
// Enable OAuth2
Enable bool `protobuf:"varint,1,opt,name=enable,proto3" json:"enable,omitempty"`
// OAuth2 description
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
// OAuth2 flow
Flow string `protobuf:"bytes,3,opt,name=flow,proto3" json:"flow,omitempty"`
// OAuth2 authorization URL
AuthorizationUrl string `protobuf:"bytes,4,opt,name=authorization_url,json=authorizationUrl,proto3" json:"authorization_url,omitempty"`
// OAuth2 token URL
TokenUrl string `protobuf:"bytes,5,opt,name=token_url,json=tokenUrl,proto3" json:"token_url,omitempty"`
// OAuth2 scopes
Scopes map[string]string `` /* 139-byte string literal not displayed */
// contains filtered or unexported fields
}
OAuth2 configuration for security
func (*OAuth2Config) Descriptor
deprecated
func (*OAuth2Config) Descriptor() ([]byte, []int)
Deprecated: Use OAuth2Config.ProtoReflect.Descriptor instead.
func (*OAuth2Config) GetAuthorizationUrl ¶
func (x *OAuth2Config) GetAuthorizationUrl() string
func (*OAuth2Config) GetDescription ¶
func (x *OAuth2Config) GetDescription() string
func (*OAuth2Config) GetEnable ¶
func (x *OAuth2Config) GetEnable() bool
func (*OAuth2Config) GetFlow ¶
func (x *OAuth2Config) GetFlow() string
func (*OAuth2Config) GetScopes ¶
func (x *OAuth2Config) GetScopes() map[string]string
func (*OAuth2Config) GetTokenUrl ¶
func (x *OAuth2Config) GetTokenUrl() string
func (*OAuth2Config) ProtoMessage ¶
func (*OAuth2Config) ProtoMessage()
func (*OAuth2Config) ProtoReflect ¶
func (x *OAuth2Config) ProtoReflect() protoreflect.Message
func (*OAuth2Config) Reset ¶
func (x *OAuth2Config) Reset()
func (*OAuth2Config) String ¶
func (x *OAuth2Config) String() string
type Security ¶
type Security struct {
// Enable security
Enable bool `protobuf:"varint,1,opt,name=enable,proto3" json:"enable,omitempty"`
// Security definitions
Definitions []*SecurityDefinition `protobuf:"bytes,2,rep,name=definitions,proto3" json:"definitions,omitempty"`
// Global security requirements
GlobalRequirements []*SecurityRequirement `protobuf:"bytes,3,rep,name=global_requirements,json=globalRequirements,proto3" json:"global_requirements,omitempty"`
// API key configuration
ApiKey *APIKey `protobuf:"bytes,4,opt,name=api_key,json=apiKey,proto3" json:"api_key,omitempty"`
// Basic authentication
BasicAuth *BasicAuth `protobuf:"bytes,5,opt,name=basic_auth,json=basicAuth,proto3" json:"basic_auth,omitempty"`
// OAuth2 configuration
Oauth2Config *OAuth2Config `protobuf:"bytes,6,opt,name=oauth2_config,json=oauth2Config,proto3" json:"oauth2_config,omitempty"`
// JWT configuration
Jwt *JWT `protobuf:"bytes,7,opt,name=jwt,proto3" json:"jwt,omitempty"`
// contains filtered or unexported fields
}
Security configuration
func (*Security) Descriptor
deprecated
func (*Security) GetBasicAuth ¶
func (*Security) GetDefinitions ¶
func (x *Security) GetDefinitions() []*SecurityDefinition
func (*Security) GetGlobalRequirements ¶
func (x *Security) GetGlobalRequirements() []*SecurityRequirement
func (*Security) GetOauth2Config ¶
func (x *Security) GetOauth2Config() *OAuth2Config
func (*Security) ProtoMessage ¶
func (*Security) ProtoMessage()
func (*Security) ProtoReflect ¶
func (x *Security) ProtoReflect() protoreflect.Message
type SecurityDefinition ¶
type SecurityDefinition struct {
// Security definition name
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Security definition type
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
// Security definition description
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// Security definition in (header, query, cookie)
In string `protobuf:"bytes,4,opt,name=in,proto3" json:"in,omitempty"`
// Security definition name
NameIn string `protobuf:"bytes,5,opt,name=name_in,json=nameIn,proto3" json:"name_in,omitempty"`
// Security definition flow
Flow string `protobuf:"bytes,6,opt,name=flow,proto3" json:"flow,omitempty"`
// Security definition authorization URL
AuthorizationUrl string `protobuf:"bytes,7,opt,name=authorization_url,json=authorizationUrl,proto3" json:"authorization_url,omitempty"`
// Security definition token URL
TokenUrl string `protobuf:"bytes,8,opt,name=token_url,json=tokenUrl,proto3" json:"token_url,omitempty"`
// Security definition scopes
Scopes map[string]string `` /* 139-byte string literal not displayed */
// contains filtered or unexported fields
}
Security definition
func (*SecurityDefinition) Descriptor
deprecated
func (*SecurityDefinition) Descriptor() ([]byte, []int)
Deprecated: Use SecurityDefinition.ProtoReflect.Descriptor instead.
func (*SecurityDefinition) GetAuthorizationUrl ¶
func (x *SecurityDefinition) GetAuthorizationUrl() string
func (*SecurityDefinition) GetDescription ¶
func (x *SecurityDefinition) GetDescription() string
func (*SecurityDefinition) GetFlow ¶
func (x *SecurityDefinition) GetFlow() string
func (*SecurityDefinition) GetIn ¶
func (x *SecurityDefinition) GetIn() string
func (*SecurityDefinition) GetName ¶
func (x *SecurityDefinition) GetName() string
func (*SecurityDefinition) GetNameIn ¶
func (x *SecurityDefinition) GetNameIn() string
func (*SecurityDefinition) GetScopes ¶
func (x *SecurityDefinition) GetScopes() map[string]string
func (*SecurityDefinition) GetTokenUrl ¶
func (x *SecurityDefinition) GetTokenUrl() string
func (*SecurityDefinition) GetType ¶
func (x *SecurityDefinition) GetType() string
func (*SecurityDefinition) ProtoMessage ¶
func (*SecurityDefinition) ProtoMessage()
func (*SecurityDefinition) ProtoReflect ¶
func (x *SecurityDefinition) ProtoReflect() protoreflect.Message
func (*SecurityDefinition) Reset ¶
func (x *SecurityDefinition) Reset()
func (*SecurityDefinition) String ¶
func (x *SecurityDefinition) String() string
type SecurityRequirement ¶
type SecurityRequirement struct {
// Security requirement name
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Security requirement scopes
Scopes []string `protobuf:"bytes,2,rep,name=scopes,proto3" json:"scopes,omitempty"`
// contains filtered or unexported fields
}
Security requirement
func (*SecurityRequirement) Descriptor
deprecated
func (*SecurityRequirement) Descriptor() ([]byte, []int)
Deprecated: Use SecurityRequirement.ProtoReflect.Descriptor instead.
func (*SecurityRequirement) GetName ¶
func (x *SecurityRequirement) GetName() string
func (*SecurityRequirement) GetScopes ¶
func (x *SecurityRequirement) GetScopes() []string
func (*SecurityRequirement) ProtoMessage ¶
func (*SecurityRequirement) ProtoMessage()
func (*SecurityRequirement) ProtoReflect ¶
func (x *SecurityRequirement) ProtoReflect() protoreflect.Message
func (*SecurityRequirement) Reset ¶
func (x *SecurityRequirement) Reset()
func (*SecurityRequirement) String ¶
func (x *SecurityRequirement) String() string
type Server ¶
type Server struct {
// Server URL
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
// Server description
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
// Server variables
Variables []*ServerVariable `protobuf:"bytes,3,rep,name=variables,proto3" json:"variables,omitempty"`
// contains filtered or unexported fields
}
Server configuration
func (*Server) Descriptor
deprecated
func (*Server) GetDescription ¶
func (*Server) GetVariables ¶
func (x *Server) GetVariables() []*ServerVariable
func (*Server) ProtoMessage ¶
func (*Server) ProtoMessage()
func (*Server) ProtoReflect ¶
func (x *Server) ProtoReflect() protoreflect.Message
type ServerVariable ¶
type ServerVariable struct {
// Variable name
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Variable default value
DefaultValue string `protobuf:"bytes,2,opt,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty"`
// Variable description
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// Variable enum values
EnumValues []string `protobuf:"bytes,4,rep,name=enum_values,json=enumValues,proto3" json:"enum_values,omitempty"`
// contains filtered or unexported fields
}
Server variable
func (*ServerVariable) Descriptor
deprecated
func (*ServerVariable) Descriptor() ([]byte, []int)
Deprecated: Use ServerVariable.ProtoReflect.Descriptor instead.
func (*ServerVariable) GetDefaultValue ¶
func (x *ServerVariable) GetDefaultValue() string
func (*ServerVariable) GetDescription ¶
func (x *ServerVariable) GetDescription() string
func (*ServerVariable) GetEnumValues ¶
func (x *ServerVariable) GetEnumValues() []string
func (*ServerVariable) GetName ¶
func (x *ServerVariable) GetName() string
func (*ServerVariable) ProtoMessage ¶
func (*ServerVariable) ProtoMessage()
func (*ServerVariable) ProtoReflect ¶
func (x *ServerVariable) ProtoReflect() protoreflect.Message
func (*ServerVariable) Reset ¶
func (x *ServerVariable) Reset()
func (*ServerVariable) String ¶
func (x *ServerVariable) String() string
type Swagger ¶
type Swagger struct {
// Enable Swagger documentation
Enable bool `protobuf:"varint,1,opt,name=enable,proto3" json:"enable,omitempty"`
// Swagger UI configuration
Ui *UI `protobuf:"bytes,2,opt,name=ui,proto3" json:"ui,omitempty"`
// API documentation configuration
Api *API `protobuf:"bytes,3,opt,name=api,proto3" json:"api,omitempty"`
// Security configuration
Security *Security `protobuf:"bytes,4,opt,name=security,proto3" json:"security,omitempty"`
// Server configuration
Server *Server `protobuf:"bytes,5,opt,name=server,proto3" json:"server,omitempty"`
// Documentation generation configuration
Generation *Generation `protobuf:"bytes,6,opt,name=generation,proto3" json:"generation,omitempty"`
// Custom configuration
Custom *Custom `protobuf:"bytes,7,opt,name=custom,proto3" json:"custom,omitempty"`
// contains filtered or unexported fields
}
Swagger configuration
func (*Swagger) Descriptor
deprecated
func (*Swagger) GetGeneration ¶
func (x *Swagger) GetGeneration() *Generation
func (*Swagger) GetSecurity ¶
func (*Swagger) ProtoMessage ¶
func (*Swagger) ProtoMessage()
func (*Swagger) ProtoReflect ¶
func (x *Swagger) ProtoReflect() protoreflect.Message
type Tag ¶
type Tag struct {
// Tag name
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Tag description
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
// Tag external docs
ExternalDocs *ExternalDocs `protobuf:"bytes,3,opt,name=external_docs,json=externalDocs,proto3" json:"external_docs,omitempty"`
// contains filtered or unexported fields
}
API tag information
func (*Tag) Descriptor
deprecated
func (*Tag) GetDescription ¶
func (*Tag) GetExternalDocs ¶
func (x *Tag) GetExternalDocs() *ExternalDocs
func (*Tag) ProtoMessage ¶
func (*Tag) ProtoMessage()
func (*Tag) ProtoReflect ¶
func (x *Tag) ProtoReflect() protoreflect.Message
type UI ¶
type UI struct {
// Enable Swagger UI
Enable bool `protobuf:"varint,1,opt,name=enable,proto3" json:"enable,omitempty"`
// UI path (default: /swagger)
Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
// UI title
Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
// UI description
Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
// UI version
Version string `protobuf:"bytes,5,opt,name=version,proto3" json:"version,omitempty"`
// UI theme (default, dark, light)
Theme string `protobuf:"bytes,6,opt,name=theme,proto3" json:"theme,omitempty"`
// Enable deep linking
DeepLinking bool `protobuf:"varint,7,opt,name=deep_linking,json=deepLinking,proto3" json:"deep_linking,omitempty"`
// Enable syntax highlighting
SyntaxHighlighting bool `protobuf:"varint,8,opt,name=syntax_highlighting,json=syntaxHighlighting,proto3" json:"syntax_highlighting,omitempty"`
// Enable try it out feature
TryItOutEnabled bool `protobuf:"varint,9,opt,name=try_it_out_enabled,json=tryItOutEnabled,proto3" json:"try_it_out_enabled,omitempty"`
// Enable request interceptor
RequestInterceptor bool `protobuf:"varint,10,opt,name=request_interceptor,json=requestInterceptor,proto3" json:"request_interceptor,omitempty"`
// Enable response interceptor
ResponseInterceptor bool `protobuf:"varint,11,opt,name=response_interceptor,json=responseInterceptor,proto3" json:"response_interceptor,omitempty"`
// Custom CSS URL
CustomCssUrl string `protobuf:"bytes,12,opt,name=custom_css_url,json=customCssUrl,proto3" json:"custom_css_url,omitempty"`
// Custom JS URL
CustomJsUrl string `protobuf:"bytes,13,opt,name=custom_js_url,json=customJsUrl,proto3" json:"custom_js_url,omitempty"`
// OAuth2 configuration
Oauth2 *OAuth2 `protobuf:"bytes,14,opt,name=oauth2,proto3" json:"oauth2,omitempty"`
// contains filtered or unexported fields
}
Swagger UI configuration
func (*UI) Descriptor
deprecated
func (*UI) GetCustomCssUrl ¶
func (*UI) GetCustomJsUrl ¶
func (*UI) GetDeepLinking ¶
func (*UI) GetDescription ¶
func (*UI) GetRequestInterceptor ¶
func (*UI) GetResponseInterceptor ¶
func (*UI) GetSyntaxHighlighting ¶
func (*UI) GetTryItOutEnabled ¶
func (*UI) GetVersion ¶
func (*UI) ProtoMessage ¶
func (*UI) ProtoMessage()
func (*UI) ProtoReflect ¶
func (x *UI) ProtoReflect() protoreflect.Message