package
Version:
v0.0.0-...-9dd540f
Opens a new window with list of versions in this module.
Published: Apr 17, 2016
License: MIT
Opens a new window with license information.
Imports: 15
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
MineConstant is the value tha is returned for constant emitters
Run starts the Pipeline Server
type Agent struct {
ID string
}
An Agent is an in memory representation of the state of an external agent program
EnqueueRequest sends shit to the agent to do
String gives a string representation of the pool
Miner is a message miner
NewMiner constructs new miners based on the configuration strings.
- @ Means always map to the same value
- * Means map to any available worker
Node is a graph node
NewNode starts a new node to work with
Pool is the primary pool of Agents
Len calculates the size of the AgentPool
Less does a simple size comparison
func (p Pool) Peek() interface{}
Peek gives the top element without affecting the heap
func (p *Pool) Pop() interface{}
Pop gets an item from the heap
func (p *Pool) Push(x interface{})
Push puts an item into the heap
Swap changes the index of two items in the AgentPool
Source Files
¶
Click to show internal directories.
Click to hide internal directories.