Documentation ¶
Index ¶
- Constants
- func AppID() string
- func HostName() string
- func Name() string
- func SetAppID(s string)
- func SetHostName(s string)
- func SetName(s string)
- func Tracer(name, host string) error
- 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) 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 ¶
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 ¶
RegisterHooks register a stage Hook
Directories ¶
Path | Synopsis |
---|---|
client
|
|
Package config is a go config management implement.
|
Package config is a go config management implement. |
dotnev
Package dotnev provide load .env data to os ENV
|
Package dotnev provide load .env data to os ENV |
hcl
Package hcl is driver use HCL format content as config source
|
Package hcl is driver use HCL format content as config source |
hclv2
Package hclv2 is driver use HCL format content as config source
|
Package hclv2 is driver use HCL format content as config source |
ini
Package ini is driver use INI format content as config source
|
Package ini is driver use INI format content as config source |
json
Package json use the https://github.com/json-iterator/go for parse json
|
Package json use the https://github.com/json-iterator/go for parse json |
json5
Package json5 use the https://github.com/yosuke-furukawa/json5 for parse json5
|
Package json5 use the https://github.com/yosuke-furukawa/json5 for parse json5 |
other
Package other is an example of a custom driver
|
Package other is an example of a custom driver |
toml
Package toml is driver use TOML format content as config source
|
Package toml is driver use TOML format content as config source |
yaml
Package yaml is a driver use YAML format content as config source
|
Package yaml is a driver use YAML format content as config source |
yamlv3
Package yaml is a driver use YAML format content as config source
|
Package yaml is a driver use YAML format content as config source |
gen
|
|
store
|
|
Click to show internal directories.
Click to hide internal directories.