Documentation ¶
Index ¶
- Constants
- func Failed(c *gin.Context, err error)
- func NewComponentService() proto.Component
- func NewExecutorService(metadata proto.Metadata) proto.Executor
- func NewMetadata(metapath string) (proto.Metadata, error)
- func NewPluginService(metadata proto.Metadata) proto.Plugin
- func NewProcessorService() proto.Processor
- func SniffName(raw []byte) (string, error)
- func StartExecutorChildProcess(configPath, masterAddr string) (executor.Executor, error)
- func Success(c *gin.Context, data interface{})
- func TestPlugin(paths ...string) error
- type ErrorGroup
- type Executor
- type ExecutorClient
- func (c *ExecutorClient) CheckDependence() []error
- func (c *ExecutorClient) Config() string
- func (c *ExecutorClient) Error() error
- func (c *ExecutorClient) ListComponents() []executor.Component
- func (c *ExecutorClient) ListProcessors() []executor.Processor
- func (c *ExecutorClient) Monitor() monitor.Monitor
- func (c *ExecutorClient) Name() string
- func (c *ExecutorClient) Start() error
- func (c *ExecutorClient) State() executor.State
- func (c *ExecutorClient) Stop()
- func (c *ExecutorClient) Visualize(w io.Writer, format string) error
- type ExecutorServer
- type Service
Constants ¶
View Source
const ( METADATA_PATH = "meta" METADATA_FILENAME = "meta.yaml" )
Variables ¶
This section is empty.
Functions ¶
func NewComponentService ¶
func NewProcessorService ¶
func TestPlugin ¶
Types ¶
type ErrorGroup ¶
type ErrorGroup []error
func (ErrorGroup) Error ¶
func (eg ErrorGroup) Error() error
type ExecutorClient ¶
type ExecutorClient struct {
// contains filtered or unexported fields
}
func NewExecutorClient ¶
func NewExecutorClient(addr string) *ExecutorClient
func (*ExecutorClient) CheckDependence ¶
func (c *ExecutorClient) CheckDependence() []error
func (*ExecutorClient) Config ¶
func (c *ExecutorClient) Config() string
func (*ExecutorClient) Error ¶
func (c *ExecutorClient) Error() error
func (*ExecutorClient) ListComponents ¶
func (c *ExecutorClient) ListComponents() []executor.Component
func (*ExecutorClient) ListProcessors ¶
func (c *ExecutorClient) ListProcessors() []executor.Processor
func (*ExecutorClient) Monitor ¶
func (c *ExecutorClient) Monitor() monitor.Monitor
func (*ExecutorClient) Name ¶
func (c *ExecutorClient) Name() string
func (*ExecutorClient) Start ¶
func (c *ExecutorClient) Start() error
func (*ExecutorClient) State ¶
func (c *ExecutorClient) State() executor.State
func (*ExecutorClient) Stop ¶
func (c *ExecutorClient) Stop()
type ExecutorServer ¶
type ExecutorServer struct {
// contains filtered or unexported fields
}
func NewExecutorServer ¶
func NewExecutorServer(exec executor.Executor) (*ExecutorServer, error)
func (*ExecutorServer) Addr ¶
func (p *ExecutorServer) Addr() string
func (*ExecutorServer) Start ¶
func (p *ExecutorServer) Start() error
Click to show internal directories.
Click to hide internal directories.