factory

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2016 License: Unlicense Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(name string, parameters map[string]interface{}) (node.Agent, error)

func Register

func Register(name string, factory AgentFactory)

Types

type AgentFactory

type AgentFactory interface {
	Create(parameters map[string]interface{}) (node.Agent, error)
}

type InvalidAgentError

type InvalidAgentError struct {
	Name string
}

func (InvalidAgentError) Error

func (err InvalidAgentError) Error() string

Jump to

Keyboard shortcuts

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