Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Component ¶
type Component struct { camBase.ComponentInterface // contains filtered or unexported fields }
base component struct
func (*Component) Init ¶
func (comp *Component) Init(configInterface camBase.ComponentConfigInterface)
init config
type ComponentConfig ¶
type ComponentConfig struct { camBase.ComponentConfigInterface Component camBase.ComponentInterface // Instance of corresponding component // contains filtered or unexported fields }
base config
func (*ComponentConfig) GetRecoverHandler ¶
func (config *ComponentConfig) GetRecoverHandler() camBase.RecoverHandler
get recover handler
func (*ComponentConfig) NewComponent ¶
func (config *ComponentConfig) NewComponent() camBase.ComponentInterface
get component instance
func (*ComponentConfig) RecoverHandler ¶
func (config *ComponentConfig) RecoverHandler(handler camBase.RecoverHandler)
set recover handler It can recover panic, but not all, only component release. For example, the panic thrown by the controller can be handled
Directories ¶
Path | Synopsis |
---|---|
From: https://github.com/jordan-wright/email Datetime: 2020-03-09 17:28:00 From: https://github.com/jordan-wright/email Datetime: 2020-03-09 17:28:00
|
From: https://github.com/jordan-wright/email Datetime: 2020-03-09 17:28:00 From: https://github.com/jordan-wright/email Datetime: 2020-03-09 17:28:00 |
Click to show internal directories.
Click to hide internal directories.