Documentation ¶
Index ¶
- type Ratel
- func (app *Ratel) GracefulStop(ctx context.Context) (err 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 ¶
This section is empty.
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{}
func (*Ratel) GracefulStop ¶
GracefulStop application after necessary cleanup
Directories ¶
Path | Synopsis |
---|---|
client
|
|
dotnev
Package dotnev provide load .env data to os ENV
|
Package dotnev provide load .env data to os ENV |
ini/parser
Package parser is a Parser for parse INI format content to golang data There are example data: # comments name = inhere age = 28 debug = true hasQuota1 = 'this is val' hasQuota2 = "this is val1" shell = ${SHELL} noEnv = ${NotExist|defValue} ; array in def section tags[] = a tags[] = b tags[] = c ; comments [sec1] key = val0 some = value stuff = things ; array in section types[] = x types[] = y how to use, please see examples:
|
Package parser is a Parser for parse INI format content to golang data There are example data: # comments name = inhere age = 28 debug = true hasQuota1 = 'this is val' hasQuota2 = "this is val1" shell = ${SHELL} noEnv = ${NotExist|defValue} ; array in def section tags[] = a tags[] = b tags[] = c ; comments [sec1] key = val0 some = value stuff = things ; array in section types[] = x types[] = y how to use, please see examples: |
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 |
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: |
sqlparser/dependency/hack
Package hack gives you some efficient functionality at the cost of breaking some Go rules.
|
Package hack gives you some efficient functionality at the cost of breaking some Go rules. |
sqlparser/dependency/querypb
Package query is a generated protocol buffer package.
|
Package query is a generated protocol buffer package. |
sqlparser/dependency/sqltypes
Package sqltypes implements interfaces and types that represent SQL values.
|
Package sqltypes implements interfaces and types that represent SQL values. |
sysinfo
|
|
Click to show internal directories.
Click to hide internal directories.