Documentation
¶
Index ¶
- Constants
- type ClientData
- type ComponentFilter
- func (f *ComponentFilter) InitFromProtocol(ctx context.Context, c *cptype.Component, gs *cptype.GlobalStateData) error
- func (f *ComponentFilter) Render(ctx context.Context, c *cptype.Component, scenario cptype.Scenario, ...) error
- func (f *ComponentFilter) SetToProtocolComponent(c *cptype.Component) error
- type Data
- type Operation
- type Option
- type State
Constants ¶
View Source
const OperationKeyOnChange = "onChange"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientData ¶
type ClientData struct {
Value string `json:"value"`
}
type ComponentFilter ¶
type ComponentFilter struct { State State `json:"state,omitempty"` Data Data `json:"data"` Operations map[string]Operation `json:"operations"` // contains filtered or unexported fields }
func (*ComponentFilter) InitFromProtocol ¶
func (f *ComponentFilter) InitFromProtocol(ctx context.Context, c *cptype.Component, gs *cptype.GlobalStateData) error
func (*ComponentFilter) Render ¶
func (f *ComponentFilter) Render(ctx context.Context, c *cptype.Component, scenario cptype.Scenario, event cptype.ComponentEvent, gs *cptype.GlobalStateData) error
func (*ComponentFilter) SetToProtocolComponent ¶
func (f *ComponentFilter) SetToProtocolComponent(c *cptype.Component) error
type Operation ¶
type Operation struct {
ClientData ClientData `json:"clientData"`
}
Click to show internal directories.
Click to hide internal directories.