Golang Import API

I want to build one executable that ships and runs dgraph alpha and zero when being executed.

This is currently only possible by executing the dgraph binary alongside my program.

Have you thought about a simple golang-interface that I can just import and use e.g. like this:

import (
   "github.com/dgraph/dgraph"
)

func main() {
   alpha := dgraph.NewAlpha(dgraph.AlphaArgs{})
   zero := dgraph.NewZero(dgraph.ZeroArgs{})
   go alpha.Start()
   go zero.Start()
   
   // rest of my code
}

That would be awesome!

Do you mean an embeddable DGraph? This feels complex to do right now. Not sure.

Yes, I guess that’s what I’m asking.