Documentation ¶
Index ¶
- Constants
- func HTTPHandler(path string, s http.Handler) fnMux
- func Pipelines() map[string]*Pipeline
- func ProcessorsDocs(code string) map[string]*doc.Processor
- func RegisterProcessor(name string, procFact ProcessorFactory)
- func Start(opt Options)
- func Stop() error
- func StopPipeline(Uuid string) error
- func Storage() *store.Store
- type Agent
- type Codec
- type Logger
- func (p *Logger) Debug(args ...interface{})
- func (p *Logger) Debugf(format string, args ...interface{})
- func (p *Logger) Debugln(args ...interface{})
- func (p *Logger) Error(args ...interface{})
- func (p *Logger) Errorf(format string, args ...interface{})
- func (p *Logger) Errorln(args ...interface{})
- func (p *Logger) Fatal(args ...interface{})
- func (p *Logger) Fatalf(format string, args ...interface{})
- func (p *Logger) Fatalln(args ...interface{})
- func (p *Logger) Info(args ...interface{})
- func (p *Logger) Infof(format string, args ...interface{})
- func (p *Logger) Infoln(args ...interface{})
- func (p *Logger) Panic(args ...interface{})
- func (p *Logger) Panicf(format string, args ...interface{})
- func (p *Logger) Panicln(args ...interface{})
- func (p *Logger) Print(args ...interface{})
- func (p *Logger) Printf(format string, args ...interface{})
- func (p *Logger) Println(args ...interface{})
- func (p *Logger) Warn(args ...interface{})
- func (p *Logger) Warnf(format string, args ...interface{})
- func (p *Logger) Warning(args ...interface{})
- func (p *Logger) Warningf(format string, args ...interface{})
- func (p *Logger) Warningln(args ...interface{})
- func (p *Logger) Warnln(args ...interface{})
- type Options
- type Pipeline
- type Port
- type PortList
- type ProcessorFactory
Constants ¶
View Source
const ( SortInputsFirst = iota + 1 SortOutputsFirst )
Sorting order
Variables ¶
This section is empty.
Functions ¶
func HTTPHandler ¶
func ProcessorsDocs ¶
ProcessorsDocs returns available ProcessorDoc
func RegisterProcessor ¶
func RegisterProcessor(name string, procFact ProcessorFactory)
RegisterProcessor is called by the processor loader when the program starts each processor give its name and factory func()
func StopPipeline ¶
Types ¶
type Agent ¶
type Agent struct { ID int Label string Done chan bool Sources []string `json:"sources"` AgentSources PortList AgentRecipients PortList Type string `json:"type"` Schedule string `json:"schedule"` Trace bool `json:"trace"` PoolSize int `json:"pool_size"` PipelineName string PipelineUUID string Buffer int `json:"buffer_size"` Options map[string]interface{} Wd string // contains filtered or unexported fields }
func Sort ¶
Sort will return a sorted list of config.Agent, it sorts agents by computing links dependencies between them
use sortOrder param config.SortInputsFirst to get agents which are not waiting events (no sources) firstly (like inputs)
use sortOrder param config.SortOutputsFirst to get agents which are not sources of any other agents firstly (like outputs)
func (*Agent) Processor ¶
func (a *Agent) Processor() processors.Processor
Processor return the agent's processor
type Codec ¶
func (*Codec) GetOptions ¶
type Pipeline ¶
type Pipeline struct { Uuid string Label string ConfigLocation string ConfigHostLocation string StartedAt time.Time Description string Webhooks []webhook.Hook Schedulers []schedulerJob // contains filtered or unexported fields }
func GetPipeline ¶
func NewPipeline ¶
func NewPipeline() *Pipeline
type ProcessorFactory ¶
type ProcessorFactory func() processors.Processor
Source Files ¶
Click to show internal directories.
Click to hide internal directories.