swagger

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIMetadata

type APIMetadata struct {
	Name        string
	URL         string
	Title       string
	Version     string
	Description string
}

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server serves the Swagger UI and aggregated OpenAPI specs

func NewServer

func NewServer() *Server

NewServer creates a new Swagger UI server

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*Server) Start

func (s *Server) Start(port int) error

Start starts the Swagger UI server

func (*Server) UpdateSpecs

func (s *Server) UpdateSpecs(apis []observabilityv1alpha1.APIInfo)

UpdateSpecs updates the stored OpenAPI specs based on the current status

Jump to

Keyboard shortcuts

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