templates

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitRouter added in v0.1.1

func InitRouter(r *http.ServeMux, s *opendoc.Swagger, cfg Config)

func RApiDocHandler added in v0.0.5

func RApiDocHandler(url string) http.HandlerFunc

func ReDocHandler

func ReDocHandler(title, url string) http.HandlerFunc

func SwaggerHandler

func SwaggerHandler(title, url string) http.HandlerFunc

Types

type Config added in v0.1.1

type Config struct {
	OpenapiRouter        string         `yaml:"path"`
	OpenapiRedocRouter   string         `yaml:"redoc-path"`
	OpenapiRApiDocRouter string         `yaml:"rapidoc-path"`
	OpenapiUrl           string         `yaml:"openapi-path"`
	OpenapiOpt           map[string]any `yaml:"options"`
}

func DefaultCfg added in v0.1.1

func DefaultCfg() Config

Jump to

Keyboard shortcuts

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