Documentation ¶
Index ¶
- func RenderCreator() protocol.CompRender
- type CommonFileInfo
- type ComponentFileInfo
- func (i *ComponentFileInfo) GenComponentState(c *apistructs.Component) error
- func (i *ComponentFileInfo) GetInParams() error
- func (i ComponentFileInfo) GetReq() error
- func (i *ComponentFileInfo) Render(ctx context.Context, c *apistructs.Component, ...) (err error)
- func (i *ComponentFileInfo) RenderProtocol(c *apistructs.Component, g *apistructs.GlobalStateData)
- func (i *ComponentFileInfo) SetCtxBundle(b protocol.ContextBundle) error
- type Data
- type InParams
- type PropColumn
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderCreator ¶
func RenderCreator() protocol.CompRender
Types ¶
type CommonFileInfo ¶
type CommonFileInfo 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 Data `json:"data,omitempty"` InParams InParams `json:"inParams,omitempty"` }
type ComponentFileInfo ¶
type ComponentFileInfo struct { CommonFileInfo // contains filtered or unexported fields }
func (*ComponentFileInfo) GenComponentState ¶
func (i *ComponentFileInfo) GenComponentState(c *apistructs.Component) error
GenComponentState 获取state
func (*ComponentFileInfo) GetInParams ¶
func (i *ComponentFileInfo) GetInParams() error
func (*ComponentFileInfo) Render ¶
func (i *ComponentFileInfo) Render(ctx context.Context, c *apistructs.Component, _ apistructs.ComponentProtocolScenario, event apistructs.ComponentEvent, gs *apistructs.GlobalStateData) (err error)
func (*ComponentFileInfo) RenderProtocol ¶
func (i *ComponentFileInfo) RenderProtocol(c *apistructs.Component, g *apistructs.GlobalStateData)
func (*ComponentFileInfo) SetCtxBundle ¶
func (i *ComponentFileInfo) SetCtxBundle(b protocol.ContextBundle) error
SetCtxBundle 设置bundle
type PropColumn ¶
Click to show internal directories.
Click to hide internal directories.