Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Component ¶
type Component struct { camStatics.ComponentInterface // contains filtered or unexported fields }
base component struct
func (*Component) Init ¶
func (comp *Component) Init(configInterface camStatics.ComponentConfigInterface)
init config
type ComponentConfig ¶
type ComponentConfig struct { camStatics.ComponentConfigInterface Component camStatics.ComponentInterface // Instance of corresponding component // contains filtered or unexported fields }
base config
func (*ComponentConfig) GetRecoverHandler ¶
func (config *ComponentConfig) GetRecoverHandler() camStatics.RecoverHandler
get recover handler
func (*ComponentConfig) NewComponent ¶
func (config *ComponentConfig) NewComponent() camStatics.ComponentInterface
get component instance
func (*ComponentConfig) RecoverHandler ¶
func (config *ComponentConfig) RecoverHandler(handler camStatics.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.