loader

package
v0.0.0-...-8c7eee6 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

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

func (*SpecLoader) Reload

func (sl *SpecLoader) Reload(ctx context.Context) ([]string, error)

Reload reloads all specifications

Jump to

Keyboard shortcuts

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