startup

package
v0.1.222 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IStartup

type IStartup interface {

	// 1. GetConfigOptions
	GetConfigOptions() *core_contracts.ConfigOptions
	// 2. ConfigureServices
	ConfigureServices(builder *di.Builder) error
	// 3. SetContainer
	SetContainer(container di.Container)
	// 4. Configure
	Configure(e *echo.Echo, root di.Container) error
	// 5. RegisterStaticRoutes
	// i.e. e.Static("/css", "./css")
	RegisterStaticRoutes(e *echo.Echo) error
	// 6. GetOptions
	GetOptions() *Options
}

IStartup for echo apps

type Options

type Options struct {
	Listener net.Listener
	Port     int
}

Options for echo apps

Jump to

Keyboard shortcuts

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