web

package
v0.0.0-...-fe78ce7 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2022 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

func New

func New(options AppOptions) (*App, error)

func (*App) Routes

func (app *App) Routes() []*echo.Route

func (*App) Start

func (app *App) Start() error

func (*App) Stop

func (app *App) Stop()

type AppOptions

type AppOptions struct {
	Log             *nslog.Logger
	DB              *gorm.DB
	Redis           *nsrds.Redis
	StaticFS        http.FileSystem
	Address         string
	CertFile        string
	CertKeyFile     string
	CertHosts       []string
	CertCacheDir    string
	ShutdownTimeout time.Duration
}

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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