silo

package
v0.0.0-...-8ab07fe Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2020 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Silo

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

Silo is the running instance of gambaru

func NewSilo

func NewSilo() *Silo

NewSilo creates a new silo

func (*Silo) AddInputQueue

func (silo *Silo) AddInputQueue(processorID uuid.UUID, queueID uuid.UUID) error

AddInputQueue attaches an Input Queue to a processor

func (*Silo) AddOutputQueue

func (silo *Silo) AddOutputQueue(processorID uuid.UUID, queueID uuid.UUID) error

AddOutputQueue attaches an Output Queue to a processor

func (*Silo) CreateProcessor

func (silo *Silo) CreateProcessor(processor interface_processor.ProcessorInterface, processorID uuid.UUID, config *flow_model.Config) uuid.UUID

CreateProcessor returns the id of a created Processor

func (*Silo) CreateQueue

func (silo *Silo) CreateQueue(queue interface_queue.QueueInterface, queueID uuid.UUID) uuid.UUID

CreateQueue returns an id of a created Queue

func (*Silo) ExportProcessors

func (silo *Silo) ExportProcessors() (flow_model.Processors, error)

func (*Silo) ExportQueues

func (silo *Silo) ExportQueues() (map[uuid.UUID]*actor.PID, error)

func (*Silo) GetRegisteredProcessor

func (silo *Silo) GetRegisteredProcessor(processorTypeName string) interface_processor.ProcessorInterface

GetRegisteredProcessor returns a registered type of processor

func (*Silo) GetRegisteredQueue

func (silo *Silo) GetRegisteredQueue(queueTypeName string) interface_queue.QueueInterface

GetRegisteredQueue returns a registered type of queue

func (*Silo) Start

func (silo *Silo) Start() error

Start commences all the configured processors

func (*Silo) Stop

func (silo *Silo) Stop()

Stop stops all the configured processors

Jump to

Keyboard shortcuts

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