pipeline

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2021 License: Apache-2.0 Imports: 18 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePipelineConfig

func CreatePipelineConfig(cfg *pipeline.PipelineConfig) error

func DeletePipelineConfig

func DeletePipelineConfig(id string) error

func GetPipelineConfig

func GetPipelineConfig(id string) (*pipeline.PipelineConfig, error)

func GetPipelineList

func GetPipelineList(from, size int) (int, []pipeline.PipelineConfig, error)

func UpdatePipelineConfig

func UpdatePipelineConfig(id string, cfg *pipeline.PipelineConfig) error

Types

type API

type API struct {
	api.Handler
}

API namespace

func (API) Init

func (handler API) Init()

type PipeModule

type PipeModule struct {
}

func (PipeModule) Name

func (module PipeModule) Name() string

func (PipeModule) Setup

func (module PipeModule) Setup(cfg *Config)

func (PipeModule) Start

func (module PipeModule) Start() error

func (PipeModule) Stop

func (module PipeModule) Stop() error

type PipeRunner

type PipeRunner struct {
	// contains filtered or unexported fields
}

func (*PipeRunner) Pause

func (pipe *PipeRunner) Pause()

func (*PipeRunner) Resume

func (pipe *PipeRunner) Resume()

func (*PipeRunner) Start

func (pipe *PipeRunner) Start(config PipeRunnerConfig)

func (*PipeRunner) Stop

func (pipe *PipeRunner) Stop()

func (*PipeRunner) Update

func (pipe *PipeRunner) Update(config PipeRunnerConfig)

type PipeRunnerConfig

type PipeRunnerConfig struct {
	Name string `json:"name,omitempty" config:"name"`

	Enabled bool `json:"enabled,omitempty" config:"enabled"`

	MaxGoRoutine int `config:"max_go_routine"`

	//Speed Control
	ThresholdInMs int `config:"threshold_in_ms"`

	//Timeout Control
	TimeoutInMs int `config:"timeout_in_ms"`

	PipelineID string `config:"pipeline_id"`

	InputQueue string `config:"input_queue"`

	Schedule string `config:"schedule"`
	// contains filtered or unexported fields
}

PipeRunnerConfig defines module related configs

Jump to

Keyboard shortcuts

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