service

package
v1.0.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2020 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	METADATA_PATH     = "meta"
	METADATA_FILENAME = "meta.yaml"
)

Variables

This section is empty.

Functions

func Failed

func Failed(c *gin.Context, err error)

func NewComponentService

func NewComponentService() proto.Component

func NewExecutorService

func NewExecutorService(metadata proto.Metadata) proto.Executor

func NewMetadata

func NewMetadata(metapath string) (proto.Metadata, error)

func NewPluginService

func NewPluginService(metadata proto.Metadata) proto.Plugin

func NewProcessorService

func NewProcessorService() proto.Processor

func SniffName

func SniffName(raw []byte) (string, error)

func StartExecutorChildProcess

func StartExecutorChildProcess(configPath, masterAddr string) (executor.Executor, error)

func Success

func Success(c *gin.Context, data interface{})

func TestPlugin

func TestPlugin(paths ...string) error

Types

type ErrorGroup

type ErrorGroup []error

func (ErrorGroup) Error

func (eg ErrorGroup) Error() error

type Executor

type Executor struct {
	executor.Executor
	Type       string
	ConfigPath string
}

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()

func (*ExecutorClient) Visualize

func (c *ExecutorClient) Visualize(w io.Writer, format string) error

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

type Service

type Service struct {
	proto.Executor
	proto.Component
	proto.Processor
	proto.Plugin
	proto.Server
	// contains filtered or unexported fields
}

func NewService

func NewService(metadata proto.Metadata) *Service

func (*Service) Start

func (s *Service) Start() error

func (*Service) Stop

func (s *Service) Stop() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL