Back to godoc.org
github.com/fino-digital/echo-swagger

Package echoSwagger

v0.0.0-...-0516f07
Latest Go to latest

The latest major version is .

Published: Oct 4, 2019 | License: MIT | Module: github.com/fino-digital/echo-swagger

Index

Variables

var WrapHandler = EchoWrapHandler()

WrapHandler wraps swaggerFiles.Handler and returns echo.HandlerFunc

func EchoWrapHandler

func EchoWrapHandler(confs ...func(c *Config)) echo.HandlerFunc

EchoWrapHandler wraps `http.Handler` into `echo.HandlerFunc`.

func URL

func URL(url string) func(c *Config)

URL presents the url pointing to API definition (normally swagger.json or swagger.yaml).

type Config

type Config struct {
	//The url pointing to API definition (normally swagger.json or swagger.yaml). Default is `doc.json`.
	URL string
}

Config stores echoSwagger configuration variables.

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier