srvhttp

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package srvhttp contains HTTP handlers for serving Kommentaar documentation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTML

func HTML(args Args) http.HandlerFunc

HTML outputs as HTML documentation.

func JSON

func JSON(args Args) http.HandlerFunc

JSON outputs as OpenAPI2 JSON.

Set the "indented" query parameter to get formatted JSON.

func YAML

func YAML(args Args) http.HandlerFunc

YAML outputs as OpenAPI2 YAML.

Types

type Args

type Args struct {
	Packages []string // Packages to scan.
	Config   string   // Kommentaar config file.
	NoScan   bool     // Don't scan the paths, but instead load and output one of the *File.
	YAMLFile string
	JSONFile string
	HTMLFile string
}

Args for the HTTP handlers.

Jump to

Keyboard shortcuts

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