service

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2020 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func NewComponentService

func NewComponentService() proto.Component

func NewMetadata

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

func NewPipelineService

func NewPipelineService(metadata proto.Metadata,
	pipelineManager PipelinerManager) proto.Pipeline

func NewPluginService

func NewPluginService(metadata proto.Metadata) proto.Plugin

func NewProcessorService

func NewProcessorService() proto.Processor

func TermVisualizer added in v1.0.4

func TermVisualizer(w io.Writer, pipeline pipeline.Pipeliner) error

Types

type ErrorGroup added in v1.0.4

type ErrorGroup []string

func (ErrorGroup) Error added in v1.0.4

func (eg ErrorGroup) Error() error

type PipelinerManager added in v1.0.4

type PipelinerManager interface {
	AddPipeline(config pipeline.Config) (pipeline.Pipeliner, error)
	RemovePipeline(name ...string) error
	RecreatePipeline(config pipeline.Config) (pipeline.Pipeliner, error)
	List() []pipeline.Pipeliner
	Find(name string) pipeline.Pipeliner
	Restart(name ...string) error
	Start(name ...string) error
	Stop(name ...string) error
}

func NewPipelinerManager added in v1.0.4

func NewPipelinerManager() PipelinerManager

type Receptor added in v1.0.4

type Receptor struct {
	StructName      string
	StructFieldName string
	InjectName      string
	ReflectType     string
}

type Service added in v1.0.4

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

func NewService added in v1.0.4

func NewService(metadata proto.Metadata) *Service

func (*Service) Start added in v1.0.4

func (s *Service) Start() error

func (*Service) Stop added in v1.0.4

func (s *Service) Stop() error

Jump to

Keyboard shortcuts

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