api

package
v0.0.0-...-1708548 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: MPL-2.0 Imports: 6 Imported by: 0

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

Directories

Path Synopsis
dms

Jump to

Keyboard shortcuts

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