예제 #1
0
func NewTestDelayNode(title string, delay time.Duration) *TestDelayNode {
	node := &TestDelayNode{}
	node.ID = bgo.CreateUUID()
	node.Category = bgo.ACTION
	node.Name = "TestDelayNode"
	node.Title = title
	node.delay = delay
	return node
}
예제 #2
0
func NewTestNode(title string, statusResponse bgo.Status) *TestNode {
	node := &TestNode{}
	node.ID = bgo.CreateUUID()
	node.Category = bgo.ACTION
	node.Name = "TestNode"
	node.Title = title
	node.statusResponse = statusResponse
	return node
}