app

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App added in v1.0.0

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

App 应用

func New added in v1.0.0

func New() *App

New 实例化

func (*App) Container added in v1.0.0

func (app *App) Container() *dig.Container

Container 容器

func (*App) ListenCron added in v1.0.1

func (app *App) ListenCron() error

ListenCron 开启定时任务

func (*App) LoadConfig added in v1.0.0

func (app *App) LoadConfig(path ...string) error

LoadConfig 加载配置文件

func (*App) LoadRouter added in v1.0.0

func (app *App) LoadRouter(loader interface{}) error

LoadRouter 加载路由

func (*App) Run added in v1.0.0

func (app *App) Run()

启动应用

func (*App) ServeHTTP added in v1.0.0

func (app *App) ServeHTTP()

ServeHTTP 启动http服务

Jump to

Keyboard shortcuts

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