Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Graceful ¶
type Graceful struct {
Logger j2rpc.LevelLogger `inject:""`
// contains filtered or unexported fields
}
Graceful ...
func (*Graceful) RegHTTPServer ¶
RegHTTPServer ...注册一个http服务
func (*Graceful) RegProcessor ¶
func (g *Graceful) RegProcessor(p ItfGracefulProcess)
RegProcessor ...注册一个对象,用于关闭程序后的行为
type ItfGracefulProcess ¶
type ItfGracefulProcess interface{ AfterShutdown() }
ItfGracefulProcess 接口,提供给关闭后行为
Click to show internal directories.
Click to hide internal directories.