app

package
v0.0.0-...-2beabf4 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(g *echo.Group, config *Config)

Types

type App

type App struct {
	// contains filtered or unexported fields
}

App is app object

func CreateApp

func CreateApp(debug bool, config *Config, swaggerInfo *swag.Spec) *App

CreateApp create a app object

func (*App) Destroy

func (app *App) Destroy()

Destroy destroy this app.

func (*App) Run

func (app *App) Run(address string)

Run start server

type Config

type Config struct {
	Static      bool   `default:"false"`
	DocFile     string `default:"./docs/swagger.json"`
	DocPath     string `default:"/docs/swagger.json"`
	SwaggerPath string `default:"/swagger/"`
	Host        string `default:"localhost:5000"`
}

Config app configs.

Jump to

Keyboard shortcuts

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