Documentation ¶
Index ¶
- type Application
- func (app *Application) AfterStop(fns ...func() error)
- func (app *Application) BeforeStop(fns ...func() error)
- func (app *Application) GracefulStop(ctx context.Context) (err error)
- func (app *Application) Job(runner job.Runner) error
- func (app *Application) Name() string
- func (app *Application) Run() error
- func (app *Application) Schedule(w worker.Worker) error
- func (app *Application) Serve(s server.Server) error
- func (app *Application) Startup(fns ...func() error) error
- func (app *Application) Stop() (err error)
- func (app *Application) Version() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct {
// contains filtered or unexported fields
}
func (*Application) AfterStop ¶
func (app *Application) AfterStop(fns ...func() error)
func (*Application) BeforeStop ¶
func (app *Application) BeforeStop(fns ...func() error)
func (*Application) GracefulStop ¶
func (app *Application) GracefulStop(ctx context.Context) (err error)
func (*Application) Name ¶
func (app *Application) Name() string
func (*Application) Run ¶
func (app *Application) Run() error
func (*Application) Startup ¶
func (app *Application) Startup(fns ...func() error) error
func (*Application) Stop ¶
func (app *Application) Stop() (err error)
func (*Application) Version ¶
func (app *Application) Version() string
Directories ¶
Path | Synopsis |
---|---|
client
|
|
store
|
|
util
|
|
xencoding/proto
Package proto defines the protobuf codec.
|
Package proto defines the protobuf codec. |
xworker/redis
Package redis /**外部定义协程池方式队列
|
Package redis /**外部定义协程池方式队列 |
Click to show internal directories.
Click to hide internal directories.