onlinedoc

package
v1.0.0-beta3 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2022 License: MIT Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

Oas store OpenAPI3.0 description json string

Functions

func Routes

func Routes() []model.Route

Routes return route slice for gorilla mux

Types

type OnlineDocHandler

type OnlineDocHandler interface {
	GetDoc(w http.ResponseWriter, r *http.Request)
	GetOpenAPI(w http.ResponseWriter, r *http.Request)
}

OnlineDocHandler define http handler interface

func NewOnlineDocHandler

func NewOnlineDocHandler() OnlineDocHandler

NewOnlineDocHandler creates new instance for OnlineDocHandlerImpl

type OnlineDocHandlerImpl

type OnlineDocHandlerImpl struct {
}

OnlineDocHandlerImpl define implementation for OnlineDocHandler

func (*OnlineDocHandlerImpl) GetDoc

func (receiver *OnlineDocHandlerImpl) GetDoc(_writer http.ResponseWriter, _req *http.Request)

GetDoc return documentation web UI

func (*OnlineDocHandlerImpl) GetOpenAPI

func (receiver *OnlineDocHandlerImpl) GetOpenAPI(_writer http.ResponseWriter, _req *http.Request)

GetOpenAPI return OpenAPI3.0 description json string

Jump to

Keyboard shortcuts

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