redoc

package module
v0.0.0-...-7e03c3a Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2022 License: MIT Imports: 10 Imported by: 1

README

Fiber redoc

Build Status

⚙ Installation

go get -u github.com/eininst/fiber-middleware-redoc

⚡ Quickstart

package main

import (
	redoc "github.com/eininst/fiber-middleware-redoc"
	"github.com/gofiber/fiber/v2"
)

func main() {
    app := fiber.New()

    app.Get("/redoc/*", redoc.New("examples/swagger.json"))

    app.Listen(":8080")
}

visit http://127.0.0.1:8080/redoc

Redoc logo

See examples

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(docSrc string, config ...Config) fiber.Handler

Types

type Config

type Config struct {
	Theme  string
	JsCDN  string
	CssCDN string
}
type XLogo struct {
	Url             string `json:"url"`
	BackgroundColor string `json:"backgroundColor"`
	AltText         string `json:"altText"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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