Documentation
¶
Index ¶
- type LoadedSpec
- type SpecLoader
- func (sl *SpecLoader) GetLoadedSpecs() map[string]*LoadedSpec
- func (sl *SpecLoader) GetRequiredEnvVars() map[string]string
- func (sl *SpecLoader) LoadFromDatabase(ctx context.Context) ([]*LoadedSpec, error)
- func (sl *SpecLoader) LoadFromFiles(ctx context.Context, filePaths []string) ([]*LoadedSpec, error)
- func (sl *SpecLoader) Reload(ctx context.Context) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoadedSpec ¶
type LoadedSpec struct {
Endpoint string
Doc *openapi3.T
Spec *models.OpenAPISpec
Content []byte
LoadedAt time.Time
}
LoadedSpec represents a loaded OpenAPI specification with metadata
type SpecLoader ¶
type SpecLoader struct {
// contains filtered or unexported fields
}
SpecLoader handles loading and management of OpenAPI specifications
func NewSpecLoader ¶
func NewSpecLoader(specLoaderService *services.SpecLoaderService, authStateManager *auth.StateManager) *SpecLoader
NewSpecLoader creates a new specification loader
func (*SpecLoader) GetLoadedSpecs ¶
func (sl *SpecLoader) GetLoadedSpecs() map[string]*LoadedSpec
GetLoadedSpecs returns all currently loaded specifications
func (*SpecLoader) GetRequiredEnvVars ¶
func (sl *SpecLoader) GetRequiredEnvVars() map[string]string
GetRequiredEnvVars returns the required environment variables
func (*SpecLoader) LoadFromDatabase ¶
func (sl *SpecLoader) LoadFromDatabase(ctx context.Context) ([]*LoadedSpec, error)
LoadFromDatabase loads specifications from the database
func (*SpecLoader) LoadFromFiles ¶
func (sl *SpecLoader) LoadFromFiles(ctx context.Context, filePaths []string) ([]*LoadedSpec, error)
LoadFromFiles loads specifications from file paths
Click to show internal directories.
Click to hide internal directories.