onlinedoc

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2022 License: MIT Imports: 6 Imported by: 1

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