Example #1
0
File: foo.go Project: nsaje/dagger
func (c *FooComputation) SubmitRecord(t *dagger.Record) ([]*dagger.Record, error) {
	t.Data = fmt.Sprintf("fooized: %v, state: %v", t.Data, c.counter)
	t.ID = uuid.NewV4().String()
	c.counter++
	return []*dagger.Record{t}, nil
}
Example #2
0
File: bar.go Project: nsaje/dagger
func (c BarComputation) SubmitRecord(t *dagger.Record) ([]*dagger.Record, error) {
	t.Data = fmt.Sprintf("barized: %v", t.Data)
	return []*dagger.Record{t}, nil
}