func Stop() error {
	cancel()
	return server.StopServer()
}
Stop stops the embedded grpc and ipfs servers
package mobile
import (
	"context"
	"fmt"
	"github.com/textileio/grpc-ipfs-lite/server"
	"github.com/textileio/grpc-ipfs-lite/util"
)
var (
	cancel context.CancelFunc
)
const ipfsPort = 4006
const grpcPort = 10001
func Start(datastorePath string, debug bool, lowMem bool) (int, error) {
	var ctx context.Context
	ctx, cancel = context.WithCancel(context.Background())
	peerManager, err := util.NewPeerManager(ctx, datastorePath, ipfsPort, debug, lowMem)
	if err != nil {
		return 0, err
	}
	host := fmt.Sprintf("localhost:%d", grpcPort)
	go server.StartServer(peerManager, host)
	return grpcPort, nil
}