Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ActivationSpec ¶
type ActivationSpec struct {
Kind string `yaml:"kind,omitempty" json:"kind,omitempty"`
Scope string `yaml:"scope,omitempty" json:"scope,omitempty"`
Service string `yaml:"service,omitempty" json:"service,omitempty"`
Method string `yaml:"method,omitempty" json:"method,omitempty"`
Args map[string]interface{} `yaml:"args,omitempty" json:"args,omitempty"`
}
type DataFeed ¶
type DataFeed struct {
Name string `json:"name" yaml:"name"`
Data interface{} `json:"data" yaml:"data"`
RawSelector string `json:"rawSelector" yaml:"rawSelector"`
}
DataFeed carries resolved value and the raw selector used to obtain it.
type DataSource ¶
type DataSource struct {
types.DataSource `yaml:",inline"`
Source string `json:"source" yaml:"source"`
Name string `json:"name" yaml:"name"`
}
func (*DataSource) HasSource ¶
func (d *DataSource) HasSource() bool
type DataSources ¶
type DataSources map[string]*DataSource
func (DataSources) FeedDataSource ¶
func (s DataSources) FeedDataSource() (*DataSource, error)
func (DataSources) Normalize ¶
func (s DataSources) Normalize() map[string]*types.DataSource
func (DataSources) Transform ¶
func (s DataSources) Transform(hash string) (map[string]*types.DataSource, map[string]string)
type Feed ¶
type Feed struct {
ID string `json:"id" yaml:"id"`
Data DataFeed `json:"dataFeed" yaml:"dataFeed"`
UI *types.Container `json:"ui" yaml:"ui"`
DataSources map[string]*types.DataSource `yaml:"dataSources,omitempty" json:"dataSources,omitempty"`
Invoked bool `json:"-" yaml:"-"`
}
Feed describes a matched rule and extracted data rendered by the UI.
type FeedSpec ¶
type FeedSpec struct {
ID string `yaml:"id,omitempty" json:"id,omitempty"`
Title string `yaml:"title,omitempty" json:"title,omitempty"`
Priority int `yaml:"priority,omitempty" json:"priority,omitempty"`
Match MatchSpec `yaml:"match" json:"match"`
Activation ActivationSpec `yaml:"activation" json:"activation"`
DataSources DataSources `yaml:"dataSource,omitempty" json:"dataSource,omitempty"`
UI types.Container `yaml:"ui" json:"ui"`
}
func (*FeedSpec) InvokeServiceMethod ¶
func (*FeedSpec) ShallInvokeTool ¶
func (*FeedSpec) ShallUseHistory ¶
Click to show internal directories.
Click to hide internal directories.