insitu

package
v0.0.0-...-5b6cbe3 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ProcessorManager *processormanager.ProcessorManager `validate:"required"`
	DeviceManager    *devicemanager.DeviceManager       `validate:"required"`
}

Config defines the running paramers of the Device

func DefaultConfig

func DefaultConfig(complex bool) Config

DefaultConfig return the configuration for a local Datapath with 10 devices. If complex is set to false, only direct graph will be used

type LocalDatapath

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

LocalDatapath connect insitu processor with insitu device manager

func NewDatapath

func NewDatapath(config Config) (*LocalDatapath, error)

NewDatapath returns a new LocalDatapath compliant with processor.Processor

func (*LocalDatapath) Capabilities

func (path *LocalDatapath) Capabilities() []selector.Capability

Capabilities returns the capabilities of the Datapath

func (*LocalDatapath) Close

func (path *LocalDatapath) Close() error

Close gracefully shutdowns the datapath

func (*LocalDatapath) Location

func (path *LocalDatapath) Location() string

Location returns the node where the Processor is running

func (*LocalDatapath) NewChannel

func (path *LocalDatapath) NewChannel(config processor.ChannelConfig) (processor.Channel, error)

NewChannel returns a new channel associated to the Processor

func (*LocalDatapath) String

func (path *LocalDatapath) String() string

String returns a descriptive name for the Processor

Jump to

Keyboard shortcuts

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