Documentation
¶
Index ¶
- type Ratel
- func (app *Ratel) GracefulStop(ctx context.Context) (err error)
- func (app *Ratel) Run(servers ...server.Server) error
- func (app *Ratel) Serve(s ...server.Server) error
- func (app *Ratel) SetRegistry(reg registry.Registry) *Ratel
- func (app *Ratel) SetTracer(name, host string) *Ratel
- func (app *Ratel) SetWorker(w worker.Worker) *Ratel
- func (app *Ratel) Startup(fns ...func() error) error
- func (app *Ratel) Stop() (err error)
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
func (*Ratel) SetRegistry ¶
SetRegistry set customize registry
Directories
¶
Path | Synopsis |
---|---|
client
|
|
dotnev
向os ENV提供加载.env数据
|
向os ENV提供加载.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.