reorganise runtime

This commit is contained in:
Asim Aslam 2020-01-19 17:47:27 +00:00
parent 54fb61bba4
commit d918694346
14 changed files with 11 additions and 12 deletions

View File

@ -2,7 +2,7 @@
package build package build
import ( import (
"github.com/micro/go-micro/runtime/source" "github.com/micro/go-micro/runtime/local/source"
) )
// Builder builds binaries // Builder builds binaries

View File

@ -9,7 +9,7 @@ import (
"path/filepath" "path/filepath"
docker "github.com/fsouza/go-dockerclient" docker "github.com/fsouza/go-dockerclient"
"github.com/micro/go-micro/runtime/build" "github.com/micro/go-micro/runtime/local/build"
"github.com/micro/go-micro/util/log" "github.com/micro/go-micro/util/log"
) )

View File

@ -6,7 +6,7 @@ import (
"os/exec" "os/exec"
"path/filepath" "path/filepath"
"github.com/micro/go-micro/runtime/build" "github.com/micro/go-micro/runtime/local/build"
) )
type Builder struct { type Builder struct {

View File

@ -10,7 +10,7 @@ import (
"strconv" "strconv"
"syscall" "syscall"
"github.com/micro/go-micro/runtime/process" "github.com/micro/go-micro/runtime/local/process"
) )
func (p *Process) Exec(exe *process.Executable) error { func (p *Process) Exec(exe *process.Executable) error {

View File

@ -2,7 +2,7 @@
package os package os
import ( import (
"github.com/micro/go-micro/runtime/process" "github.com/micro/go-micro/runtime/local/process"
) )
type Process struct{} type Process struct{}

View File

@ -4,7 +4,7 @@ package process
import ( import (
"io" "io"
"github.com/micro/go-micro/runtime/build" "github.com/micro/go-micro/runtime/local/build"
) )
// Process manages a running process // Process manages a running process

View File

@ -6,7 +6,7 @@ import (
"path/filepath" "path/filepath"
"strings" "strings"
"github.com/micro/go-micro/runtime/source" "github.com/micro/go-micro/runtime/local/source"
git "gopkg.in/src-d/go-git.v4" git "gopkg.in/src-d/go-git.v4"
) )

View File

@ -7,7 +7,7 @@ import (
"path/filepath" "path/filepath"
"strings" "strings"
"github.com/micro/go-micro/runtime/source" "github.com/micro/go-micro/runtime/local/source"
) )
type Source struct { type Source struct {

View File

@ -5,10 +5,9 @@ import (
"sync" "sync"
"time" "time"
"github.com/micro/go-micro/runtime/build" "github.com/micro/go-micro/runtime/local/build"
"github.com/micro/go-micro/runtime/local/process"
"github.com/micro/go-micro/runtime/process" proc "github.com/micro/go-micro/runtime/local/process/os"
proc "github.com/micro/go-micro/runtime/process/os"
"github.com/micro/go-micro/util/log" "github.com/micro/go-micro/util/log"
) )