libra

package
v0.0.0-...-069db6f Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SerialUntilError

func SerialUntilError(fns ...func() error) func() error

迭代执行

Types

type Application

type Application struct {
	AppName    string //应用名称
	AppVersion string //应用版本号

	HideBanner bool //隐藏Banner
	// contains filtered or unexported fields
}

func DefaultApplication

func DefaultApplication() *Application

func (*Application) AppendServers

func (app *Application) AppendServers(server ...interface{}) error

添加server到启动任务

func (*Application) AppendWorkes

func (app *Application) AppendWorkes(worker ...worker.Worker) error

添加server到启动任务

func (*Application) Run

func (app *Application) Run(fns ...func() error) (err error)

启动服务

func (*Application) SetConfigPath

func (app *Application) SetConfigPath(confPath string) error

func (*Application) SetLogPath

func (app *Application) SetLogPath(logPath string) error

func (*Application) Start

func (app *Application) Start() (err error)

准备服务

Directories

Path Synopsis
store

Jump to

Keyboard shortcuts

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