Documentation ¶
Index ¶
- func RenderCreator() protocol.CompRender
- type CommonFilter
- type ComponentFilter
- func (i *ComponentFilter) GenComponentState(c *apistructs.Component) error
- func (i *ComponentFilter) Render(ctx context.Context, c *apistructs.Component, ...) (err error)
- func (i *ComponentFilter) RenderProtocol(c *apistructs.Component, g *apistructs.GlobalStateData) error
- func (i *ComponentFilter) SetComponentValue()
- func (i *ComponentFilter) SetCtxBundle(b protocol.ContextBundle) error
- type Operations
- type Options
- type Props
- type State
- type StateConditions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderCreator ¶
func RenderCreator() protocol.CompRender
Types ¶
type CommonFilter ¶
type ComponentFilter ¶
type ComponentFilter struct { CommonFilter // contains filtered or unexported fields }
func (*ComponentFilter) GenComponentState ¶
func (i *ComponentFilter) GenComponentState(c *apistructs.Component) error
GenComponentState 获取state
func (*ComponentFilter) Render ¶
func (i *ComponentFilter) Render(ctx context.Context, c *apistructs.Component, _ apistructs.ComponentProtocolScenario, event apistructs.ComponentEvent, gs *apistructs.GlobalStateData) (err error)
func (*ComponentFilter) RenderProtocol ¶
func (i *ComponentFilter) RenderProtocol(c *apistructs.Component, g *apistructs.GlobalStateData) error
RenderProtocol 渲染组件
func (*ComponentFilter) SetComponentValue ¶
func (i *ComponentFilter) SetComponentValue()
func (*ComponentFilter) SetCtxBundle ¶
func (i *ComponentFilter) SetCtxBundle(b protocol.ContextBundle) error
SetCtxBundle 设置bundle
type Operations ¶
type State ¶
type State struct { Values map[string]interface{} `json:"values"` Conditions []StateConditions `json:"conditions"` IsFirstFilter bool `json:"isFirstFilter"` }
Click to show internal directories.
Click to hide internal directories.