refactor: internal package

This commit is contained in:
Rob Watson 2025-03-09 19:58:25 +01:00
parent 223b7fcd83
commit 7dba1768a4
39 changed files with 46 additions and 46 deletions

View File

@ -6,12 +6,12 @@ import (
"log/slog" "log/slog"
"time" "time"
"git.netflux.io/rob/octoplex/config" "git.netflux.io/rob/octoplex/internal/config"
"git.netflux.io/rob/octoplex/container" "git.netflux.io/rob/octoplex/internal/container"
"git.netflux.io/rob/octoplex/domain" "git.netflux.io/rob/octoplex/internal/domain"
"git.netflux.io/rob/octoplex/mediaserver" "git.netflux.io/rob/octoplex/internal/mediaserver"
"git.netflux.io/rob/octoplex/multiplexer" "git.netflux.io/rob/octoplex/internal/multiplexer"
"git.netflux.io/rob/octoplex/terminal" "git.netflux.io/rob/octoplex/internal/terminal"
"github.com/gdamore/tcell/v2" "github.com/gdamore/tcell/v2"
) )

View File

@ -7,10 +7,10 @@ import (
"testing" "testing"
"time" "time"
"git.netflux.io/rob/octoplex/app" "git.netflux.io/rob/octoplex/internal/app"
"git.netflux.io/rob/octoplex/config" "git.netflux.io/rob/octoplex/internal/config"
"git.netflux.io/rob/octoplex/domain" "git.netflux.io/rob/octoplex/internal/domain"
"git.netflux.io/rob/octoplex/testhelpers" "git.netflux.io/rob/octoplex/internal/testhelpers"
dockerclient "github.com/docker/docker/client" dockerclient "github.com/docker/docker/client"
"github.com/gdamore/tcell/v2" "github.com/gdamore/tcell/v2"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"

View File

@ -1,6 +1,6 @@
package config package config
import "git.netflux.io/rob/octoplex/domain" import "git.netflux.io/rob/octoplex/internal/domain"
const defaultLogFile = domain.AppName + ".log" const defaultLogFile = domain.AppName + ".log"

View File

@ -7,7 +7,7 @@ import (
"path/filepath" "path/filepath"
"strings" "strings"
"git.netflux.io/rob/octoplex/domain" "git.netflux.io/rob/octoplex/internal/domain"
"gopkg.in/yaml.v3" "gopkg.in/yaml.v3"
) )

View File

@ -6,8 +6,8 @@ import (
"path/filepath" "path/filepath"
"testing" "testing"
"git.netflux.io/rob/octoplex/config" "git.netflux.io/rob/octoplex/internal/config"
"git.netflux.io/rob/octoplex/shortid" "git.netflux.io/rob/octoplex/internal/shortid"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View File

@ -11,8 +11,8 @@ import (
"sync" "sync"
"time" "time"
"git.netflux.io/rob/octoplex/domain" "git.netflux.io/rob/octoplex/internal/domain"
"git.netflux.io/rob/octoplex/shortid" "git.netflux.io/rob/octoplex/internal/shortid"
"github.com/docker/docker/api/types/container" "github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/events" "github.com/docker/docker/api/types/events"
"github.com/docker/docker/api/types/filters" "github.com/docker/docker/api/types/filters"

View File

@ -7,9 +7,9 @@ import (
"testing" "testing"
"time" "time"
"git.netflux.io/rob/octoplex/container" "git.netflux.io/rob/octoplex/internal/container"
containermocks "git.netflux.io/rob/octoplex/generated/mocks/container" containermocks "git.netflux.io/rob/octoplex/internal/generated/mocks/container"
"git.netflux.io/rob/octoplex/testhelpers" "git.netflux.io/rob/octoplex/internal/testhelpers"
dockercontainer "github.com/docker/docker/api/types/container" dockercontainer "github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/events" "github.com/docker/docker/api/types/events"
"github.com/docker/docker/api/types/filters" "github.com/docker/docker/api/types/filters"

View File

@ -5,8 +5,8 @@ import (
"io" "io"
"testing" "testing"
containermocks "git.netflux.io/rob/octoplex/generated/mocks/container" containermocks "git.netflux.io/rob/octoplex/internal/generated/mocks/container"
"git.netflux.io/rob/octoplex/testhelpers" "git.netflux.io/rob/octoplex/internal/testhelpers"
"github.com/docker/docker/api/types/events" "github.com/docker/docker/api/types/events"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock" "github.com/stretchr/testify/mock"

View File

@ -8,10 +8,10 @@ import (
"testing" "testing"
"time" "time"
"git.netflux.io/rob/octoplex/container" "git.netflux.io/rob/octoplex/internal/container"
"git.netflux.io/rob/octoplex/domain" "git.netflux.io/rob/octoplex/internal/domain"
"git.netflux.io/rob/octoplex/shortid" "git.netflux.io/rob/octoplex/internal/shortid"
"git.netflux.io/rob/octoplex/testhelpers" "git.netflux.io/rob/octoplex/internal/testhelpers"
typescontainer "github.com/docker/docker/api/types/container" typescontainer "github.com/docker/docker/api/types/container"
"github.com/docker/docker/client" "github.com/docker/docker/client"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"

View File

@ -7,8 +7,8 @@ import (
"io" "io"
"testing" "testing"
containermocks "git.netflux.io/rob/octoplex/generated/mocks/container" containermocks "git.netflux.io/rob/octoplex/internal/generated/mocks/container"
"git.netflux.io/rob/octoplex/testhelpers" "git.netflux.io/rob/octoplex/internal/testhelpers"
dockercontainer "github.com/docker/docker/api/types/container" dockercontainer "github.com/docker/docker/api/types/container"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"

View File

@ -3,7 +3,7 @@ package domain_test
import ( import (
"testing" "testing"
"git.netflux.io/rob/octoplex/domain" "git.netflux.io/rob/octoplex/internal/domain"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
) )

View File

@ -12,8 +12,8 @@ import (
typescontainer "github.com/docker/docker/api/types/container" typescontainer "github.com/docker/docker/api/types/container"
"github.com/docker/go-connections/nat" "github.com/docker/go-connections/nat"
"git.netflux.io/rob/octoplex/container" "git.netflux.io/rob/octoplex/internal/container"
"git.netflux.io/rob/octoplex/domain" "git.netflux.io/rob/octoplex/internal/domain"
) )
const ( const (

View File

@ -7,7 +7,7 @@ import (
"net/http" "net/http"
"testing" "testing"
mocks "git.netflux.io/rob/octoplex/generated/mocks/mediaserver" mocks "git.netflux.io/rob/octoplex/internal/generated/mocks/mediaserver"
"github.com/stretchr/testify/mock" "github.com/stretchr/testify/mock"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View File

@ -7,9 +7,9 @@ import (
"testing" "testing"
"time" "time"
"git.netflux.io/rob/octoplex/container" "git.netflux.io/rob/octoplex/internal/container"
"git.netflux.io/rob/octoplex/mediaserver" "git.netflux.io/rob/octoplex/internal/mediaserver"
"git.netflux.io/rob/octoplex/testhelpers" "git.netflux.io/rob/octoplex/internal/testhelpers"
"github.com/docker/docker/client" "github.com/docker/docker/client"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"

View File

@ -6,10 +6,10 @@ import (
"testing" "testing"
"time" "time"
"git.netflux.io/rob/octoplex/container" "git.netflux.io/rob/octoplex/internal/container"
"git.netflux.io/rob/octoplex/mediaserver" "git.netflux.io/rob/octoplex/internal/mediaserver"
"git.netflux.io/rob/octoplex/multiplexer" "git.netflux.io/rob/octoplex/internal/multiplexer"
"git.netflux.io/rob/octoplex/testhelpers" "git.netflux.io/rob/octoplex/internal/testhelpers"
"github.com/docker/docker/client" "github.com/docker/docker/client"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"

View File

@ -11,8 +11,8 @@ import (
typescontainer "github.com/docker/docker/api/types/container" typescontainer "github.com/docker/docker/api/types/container"
"git.netflux.io/rob/octoplex/container" "git.netflux.io/rob/octoplex/internal/container"
"git.netflux.io/rob/octoplex/domain" "git.netflux.io/rob/octoplex/internal/domain"
) )
type action func() type action func()

View File

@ -3,7 +3,7 @@ package shortid_test
import ( import (
"testing" "testing"
"git.netflux.io/rob/octoplex/shortid" "git.netflux.io/rob/octoplex/internal/shortid"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
) )

View File

@ -10,7 +10,7 @@ import (
"sync" "sync"
"time" "time"
"git.netflux.io/rob/octoplex/domain" "git.netflux.io/rob/octoplex/internal/domain"
"github.com/gdamore/tcell/v2" "github.com/gdamore/tcell/v2"
"github.com/rivo/tview" "github.com/rivo/tview"
"golang.design/x/clipboard" "golang.design/x/clipboard"

View File

@ -3,7 +3,7 @@ package terminal
import ( import (
"testing" "testing"
"git.netflux.io/rob/octoplex/domain" "git.netflux.io/rob/octoplex/internal/domain"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
) )

View File

@ -10,9 +10,9 @@ import (
"runtime/debug" "runtime/debug"
"syscall" "syscall"
"git.netflux.io/rob/octoplex/app" "git.netflux.io/rob/octoplex/internal/app"
"git.netflux.io/rob/octoplex/config" "git.netflux.io/rob/octoplex/internal/config"
"git.netflux.io/rob/octoplex/domain" "git.netflux.io/rob/octoplex/internal/domain"
dockerclient "github.com/docker/docker/client" dockerclient "github.com/docker/docker/client"
"golang.design/x/clipboard" "golang.design/x/clipboard"
) )