Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAllSwaggerDocs ¶
func GetAllSwaggerDocs() map[SwaggerType]*SwaggerDoc
GetAllSwaggerDocs returns all the registered Swagger documents
func RegisterSwaggerDoc ¶
func RegisterSwaggerDoc(swaggerType SwaggerType, file []byte)
RegisterSwaggerDoc registers a Swagger document and adds a config function
Types ¶
type SwaggerDoc ¶
type SwaggerDoc struct {
// contains filtered or unexported fields
}
func GetSwaggerDoc ¶
func GetSwaggerDoc(swaggerType SwaggerType) (*SwaggerDoc, bool)
GetSwaggerDoc returns the Swagger document by the given type
func (*SwaggerDoc) ReadDoc ¶
func (sd *SwaggerDoc) ReadDoc() string
type SwaggerType ¶
type SwaggerType string
const ( SqleSwaggerTypeKey SwaggerType = _const.SqleComponentName DmsSwaggerTykeKey SwaggerType = _const.DmsComponentName )
func (SwaggerType) GetUrlPath ¶
func (t SwaggerType) GetUrlPath() string
Click to show internal directories.
Click to hide internal directories.