Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Component ¶
type Component interface { List() ([]ComponentView, error) Find(name string) (*ComponentView, error) }
type ComponentView ¶
type ComponentView struct { Name string `json:"name"` RawConfig string `json:"raw_config,omitempty"` SampleConfig string `json:"sample_config"` Description string `json:"description"` InjectName string `json:"inject_name,omitempty"` ReflectType string `json:"reflect_type,omitempty"` ReflectValue string `json:"reflect_value,omitempty"` }
type ControlCommand ¶
type ControlCommand string
const ( ControlCommandStart ControlCommand = "start" ControlCommandStop ControlCommand = "stop" ControlCommandRestart ControlCommand = "restart" )
type MetadataView ¶
type Pipeline ¶
type Pipeline interface { GenerateConfig(name, schdule string, components, processors []string) (*pipe.Config, error) Add(conf pipe.Config) error Recreate(conf pipe.Config) error List() ([]PipelineView, error) Find(name string) (*PipelineView, error) Control(cmd ControlCommand, names []string) error }
type PipelineView ¶
type PipelineView struct { Name string `json:"name"` State string `json:"state"` Schedule string `json:"schedule"` Bootstrap bool `json:"bootstrap"` StartTime string `json:"start_time"` ExitTime string `json:"exit_time"` RunTimes string `json:"run_times"` NextRunTime string `json:"next_run_time"` LastStartTime string `json:"last_start_time"` LastEndTime string `json:"last_end_time"` Components []ComponentView `json:"components,emitempty"` Processors []ProcessorView `json:"processors,emitempty"` RawConfig []byte `json:"raw_config,emitempty"` }
type PluginOpenRequest ¶
type PluginOpenRequest struct {
Path string `json:"path"`
}
type PluginView ¶
type Processor ¶
type Processor interface { List() ([]ProcessorView, error) Find(name string) (*ProcessorView, error) }
type ProcessorView ¶
type Server ¶
type Server interface {
Metadata() (MetadataView, error)
}
type VisualizeFormat ¶
type VisualizeFormat string
const ( VisualizeFormatSVG VisualizeFormat = "svg" VisualizeFormatRaw VisualizeFormat = "raw" VisualizeFormatDot VisualizeFormat = "dot" VisualizeFormatASCIITable VisualizeFormat = "ascii_table" )
Click to show internal directories.
Click to hide internal directories.