Documentation ¶
Index ¶
- Constants
- type Ratel
- func (app *Ratel) GracefulStop(ctx context.Context) (err error)
- func (app *Ratel) RegisterHooks(k uint32, fns ...func() error) error
- func (app *Ratel) Registry(reg registry.Registry) *Ratel
- func (app *Ratel) Run(servers ...server.Server) error
- func (app *Ratel) Serve(s ...server.Server) error
- func (app *Ratel) Startup(fns ...func() error) error
- func (app *Ratel) Stop() (err error)
- func (app *Ratel) Tracer(name, host string) *Ratel
- func (app *Ratel) Worker(w worker.Worker) *Ratel
Constants ¶
View Source
const ( //StageAfterStop after app stop StageAfterStop uint32 = iota + 1 //StageBeforeStop before app stop StageBeforeStop )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ratel ¶
type Ratel struct {
// contains filtered or unexported fields
}
Ratel Create an instance of Application, by using &Ratel{}
var App *Ratel
func (*Ratel) GracefulStop ¶
GracefulStop application after necessary cleanup
func (*Ratel) RegisterHooks ¶ added in v1.7.16
RegisterHooks register a stage Hook
Directories ¶
Path | Synopsis |
---|---|
client
|
|
dotnev
Package dotnev provide load .env data to os ENV
|
Package dotnev provide load .env data to os ENV |
toml
Package toml is driver use TOML format content as config source Usage please see example:
|
Package toml is driver use TOML format content as config source Usage please see example: |
yaml
Package yaml is a driver use YAML format content as config source Usage please see example:
|
Package yaml is a driver use YAML format content as config source Usage please see example: |
Package cron implements a cron spec parser and job runner.
|
Package cron implements a cron spec parser and job runner. |
sysinfo
|
|
Click to show internal directories.
Click to hide internal directories.