Documentation ¶
Index ¶
- func SerialUntilError(fns ...func() error) func() error
- type Application
- func (app *Application) AppendServers(server ...interface{}) error
- func (app *Application) AppendWorkes(worker ...worker.Worker) error
- func (app *Application) Run(fns ...func() error) (err error)
- func (app *Application) SetConfigPath(confPath string) error
- func (app *Application) SetLogPath(logPath string) error
- func (app *Application) Start() (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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) SetConfigPath ¶
func (app *Application) SetConfigPath(confPath string) error
func (*Application) SetLogPath ¶
func (app *Application) SetLogPath(logPath string) error
Click to show internal directories.
Click to hide internal directories.