Documentation ¶
Index ¶
- type ComponentWorkloadInfo
- func (i *ComponentWorkloadInfo) GenComponentState(component *cptype.Component) error
- func (i *ComponentWorkloadInfo) Init(ctx servicehub.Context) error
- func (i *ComponentWorkloadInfo) InitComponent(ctx context.Context)
- func (i *ComponentWorkloadInfo) Render(ctx context.Context, component *cptype.Component, _ cptype.Scenario, ...) error
- func (i *ComponentWorkloadInfo) SetComponentValue(ctx context.Context) error
- func (i *ComponentWorkloadInfo) Transfer(component *cptype.Component)
- type Data
- type DataInData
- type Field
- type Props
- type State
- type Tag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComponentWorkloadInfo ¶
type ComponentWorkloadInfo struct { Type string `json:"type,omitempty"` Props Props `json:"props,omitempty"` Data Data `json:"data,omitempty"` State State `json:"state,omitempty"` // contains filtered or unexported fields }
func (*ComponentWorkloadInfo) GenComponentState ¶
func (i *ComponentWorkloadInfo) GenComponentState(component *cptype.Component) error
func (*ComponentWorkloadInfo) Init ¶
func (i *ComponentWorkloadInfo) Init(ctx servicehub.Context) error
func (*ComponentWorkloadInfo) InitComponent ¶
func (i *ComponentWorkloadInfo) InitComponent(ctx context.Context)
func (*ComponentWorkloadInfo) Render ¶
func (i *ComponentWorkloadInfo) Render(ctx context.Context, component *cptype.Component, _ cptype.Scenario, event cptype.ComponentEvent, _ *cptype.GlobalStateData) error
func (*ComponentWorkloadInfo) SetComponentValue ¶
func (i *ComponentWorkloadInfo) SetComponentValue(ctx context.Context) error
func (*ComponentWorkloadInfo) Transfer ¶
func (i *ComponentWorkloadInfo) Transfer(component *cptype.Component)
type Data ¶
type Data struct {
Data DataInData `json:"data,omitempty"`
}
type DataInData ¶
Click to show internal directories.
Click to hide internal directories.