Documentation ¶
Index ¶
- func GetScenarioAndCompNameFromProviderKey(providerKey string) (scenario, compName, instanceName string, err error)
- func InitProvider(scenario, compName string)
- func InitProviderWithCreator(scenario, compName string, creator servicehub.Creator)
- func MakeComponentProviderName(scenario, compType string) string
- func MustGetScenarioAndCompNameFromProviderKey(providerKey string) (scenario, compName, instanceName string)
- type Creators
- type DefaultProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitProvider ¶
func InitProvider(scenario, compName string)
InitProvider register component as provider.
func InitProviderWithCreator ¶
func InitProviderWithCreator(scenario, compName string, creator servicehub.Creator)
InitProviderWithCreator register component as provider with custom providerCreator.
Types ¶
type Creators ¶ added in v1.5.0
type Creators struct { RenderCreator protocol.RenderCreator ComponentCreator protocol.ComponentCreator }
type DefaultProvider ¶
type DefaultProvider struct{}
func (*DefaultProvider) Render ¶
func (p *DefaultProvider) Render(ctx context.Context, c *cptype.Component, scenario cptype.Scenario, event cptype.ComponentEvent, gs *cptype.GlobalStateData) error
Render is empty implement.
Click to show internal directories.
Click to hide internal directories.