Exemple #1
0
// client *client.Client
func Init(discover string) {
	program = &Program{}
	if discover != "" {
		program.Client = client.DialDiscover(discover, nil)
	}

	rand.Seed(time.Now().UnixNano())

	faculty.Register(be.NewMaterializer(&Process{}), "element", "Process")
	faculty.Register(be.NewMaterializer(&Docker{}), "element", "Docker")
}
Exemple #2
0
func Init(arg []string) {
	faculty.Register(be.NewSource(argCircuit(arg)), "os", "Arg")
	faculty.Register(be.NewSource(argCircuit(os.Environ())), "os", "Env")
	faculty.Register(be.NewMaterializer(Exit{}), "os", "Exit")
	faculty.Register(be.NewMaterializer(Fatal{}), "os", "Fatal")
	faculty.Register(be.NewMaterializer(LookPath{}), "os", "LookPath")
	faculty.Register(be.NewMaterializer(Join{}), "os", "Join")
	faculty.Register(be.NewMaterializer(Process{}), "os", "Process")
	faculty.Register(fio.NewReaderMaterializer(os.Stdin), "os", "Stdin")
	faculty.Register(fio.NewWriterMaterializer(os.Stdout), "os", "Stdout")
	faculty.Register(fio.NewWriterMaterializer(os.Stderr), "os", "Stderr")
}
Exemple #3
0
func init() {
	faculty.Register(be.NewSink(), "e", "Ignore")
	faculty.Register(be.NewMaterializer(&Grow{}), "e", "Grow")
	faculty.Register(be.NewMaterializer(&be.Union{}), "e", "Fork")
	faculty.Register(be.NewMaterializer(&Lens{}), "e", "Lens")
	faculty.Register(be.NewMaterializer(&Alternate{}), "e", "Alternate")
	faculty.Register(be.NewMaterializer(&Alternate{}), "e", "Alt")
	faculty.Register(be.NewMaterializer(&OneWayDoor{}), "e", "OneWayDoor")
	faculty.Register(be.NewMaterializer(Repeat{}), "e", "Repeat")
}
Exemple #4
0
func init() {
	faculty.Register(be.NewMaterializer(&System{}), "e", "Materialize")
	faculty.Register(be.NewMaterializer(Index{}), "e", "Index")
	faculty.Register(be.NewMaterializer(Parse{}), "e", "Parse")
	faculty.Register(be.NewMaterializer(Breakpoint{}), "e", "Breakpoint")
	faculty.Register(be.NewMaterializer(&Help{}), "e", "help")
	faculty.Register(be.NewMaterializer(&Help{}), "e", "Help")
}
Exemple #5
0
func init() {
	faculty.Register(be.NewMaterializer(&Server{}), "http", "Server")
}
Exemple #6
0
func init() {
	faculty.Register(be.NewMaterializer(Merge{}), "text", "Merge")
	faculty.Register(be.NewMaterializer(Form{}), "text", "Form")
}
Exemple #7
0
func init() {
	faculty.Register(be.NewMaterializer(&Star{}), "e", "Star")
	faculty.Register(be.NewMaterializer(&Star{}, StarFunc(show)), "e", "Show")
	faculty.Register(be.NewMaterializer(&Star{}, StarFunc(show1)), "e", "Show1")
	faculty.Register(be.NewMaterializer(&Star{}, StarFunc(show2)), "e", "Show2")
}
Exemple #8
0
func init() {
	faculty.Register(be.NewMaterializer(Planar{}), "cmplx", "Planar")
	faculty.Register(be.NewMaterializer(Polar{}), "cmplx", "Polar")
}
Exemple #9
0
func init() {
	faculty.Register(be.NewMaterializer(&WriteFile{}), "io", "WriteFile")
}
Exemple #10
0
func init() {
	faculty.Register(be.NewMaterializer(Chunk{}), "io", "ChunkUp")
}
Exemple #11
0
func init() {
	faculty.Register(be.NewMaterializer(&IntSum{}), "math", "IntSum")
}
Exemple #12
0
func init() {
	faculty.Register(be.NewMaterializer(Gates{}), "yield", "Gates")
	faculty.Register(be.NewMaterializer(Flows{}), "yield", "Flows")
	faculty.Register(be.NewMaterializer(DepthFirst{}), "yield", "DepthFirst")
}
Exemple #13
0
func init() {
	faculty.Register(be.NewMaterializer(IgnoreValves{}), "model", "IgnoreValves")
}
Exemple #14
0
func NewSourceFile(name string) be.Materializer {
	return be.NewMaterializer(SourceFile{}, name)
}
Exemple #15
0
func Init(srcdir string) {
	srcDir = srcdir
	faculty.Register(be.NewMaterializer(&Match{}), "test", "Match")
	faculty.Register(be.NewMaterializer(Filter{}), "test", "Filter")
	faculty.Register(be.NewMaterializer(Exec{}), "test", "Exec")
}
Exemple #16
0
func init() {
	// faculty.Register("Sum", Sum{})
	faculty.Register(be.NewMaterializer(IntString{}), "e", "IntString")
}
Exemple #17
0
func init() {
	faculty.Register(be.NewMaterializer(IO{}), "model", "IO")
}
Exemple #18
0
func init() {
	faculty.Register(be.NewMaterializer(&Ticker{}), "time", "Ticker")
	faculty.Register(be.NewMaterializer(&Delay{}), "time", "Delay")
}
Exemple #19
0
func init() {
	faculty.Register(be.NewMaterializer(Lookup{}), "index", "Lookup")
	faculty.Register(be.NewMaterializer(Mirror{}), "index", "Mirror")
	faculty.Register(be.NewMaterializer(Yield{}), "index", "Yield")
}