Documentation ¶
Index ¶
- func RenderCreator() protocol.CompRender
- type CommonAlertInfo
- type ComponentAlertInfo
- func (i *ComponentAlertInfo) GenComponentState(c *apistructs.Component) error
- func (a *ComponentAlertInfo) Import(c *apistructs.Component) error
- func (i *ComponentAlertInfo) Render(ctx context.Context, c *apistructs.Component, ...) (err error)
- func (i *ComponentAlertInfo) RenderProtocol(c *apistructs.Component, g *apistructs.GlobalStateData)
- func (i *ComponentAlertInfo) SetCtxBundle(b protocol.ContextBundle) error
- type PropColumn
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderCreator ¶
func RenderCreator() protocol.CompRender
Types ¶
type CommonAlertInfo ¶
type CommonAlertInfo struct { Version string `json:"version,omitempty"` Name string `json:"name,omitempty"` Type string `json:"type,omitempty"` Props map[string]interface{} `json:"props,omitempty"` State State `json:"state,omitempty"` Operations map[apistructs.OperationKey]apistructs.Operation `json:"operations,omitempty"` Data map[string]interface{} `json:"data,omitempty"` }
type ComponentAlertInfo ¶
type ComponentAlertInfo struct { CtxBdl protocol.ContextBundle CommonAlertInfo }
func (*ComponentAlertInfo) GenComponentState ¶
func (i *ComponentAlertInfo) GenComponentState(c *apistructs.Component) error
GenComponentState 获取state
func (*ComponentAlertInfo) Import ¶
func (a *ComponentAlertInfo) Import(c *apistructs.Component) error
func (*ComponentAlertInfo) Render ¶
func (i *ComponentAlertInfo) Render(ctx context.Context, c *apistructs.Component, _ apistructs.ComponentProtocolScenario, event apistructs.ComponentEvent, gs *apistructs.GlobalStateData) (err error)
func (*ComponentAlertInfo) RenderProtocol ¶
func (i *ComponentAlertInfo) RenderProtocol(c *apistructs.Component, g *apistructs.GlobalStateData)
func (*ComponentAlertInfo) SetCtxBundle ¶
func (i *ComponentAlertInfo) SetCtxBundle(b protocol.ContextBundle) error
SetCtxBundle 设置bundle
type PropColumn ¶
Click to show internal directories.
Click to hide internal directories.