Skip to content

Commit

Permalink
Moved services to the internal structure
Browse files Browse the repository at this point in the history
  • Loading branch information
RicYaben committed Jul 24, 2022
1 parent 195a9aa commit 30b1de9
Show file tree
Hide file tree
Showing 17 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion api/proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"github.com/riotpot/api"
"github.com/riotpot/api/service"
"github.com/riotpot/internal/proxy"
"github.com/riotpot/internal/services"
"github.com/riotpot/internal/validators"
"github.com/riotpot/pkg/services"
)

// Structures used to serialize data:
Expand Down
2 changes: 1 addition & 1 deletion api/service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (

"github.com/gin-gonic/gin"
"github.com/riotpot/api"
"github.com/riotpot/internal/services"
"github.com/riotpot/internal/validators"
"github.com/riotpot/pkg/services"
)

type GetService struct {
Expand Down
2 changes: 1 addition & 1 deletion configs/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ TIP: To create your own plugin...
package main

import (
"github.com/riotpot/pkg/services"
"github.com/riotpot/internal/services"
)

// Place here the name of the function which returns the service interface.
Expand Down
2 changes: 1 addition & 1 deletion internal/proxy/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package proxy
import (
"fmt"

"github.com/riotpot/pkg/services"
"github.com/riotpot/internal/services"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion internal/proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"sync"

"github.com/google/uuid"
"github.com/riotpot/internal/services"
"github.com/riotpot/internal/validators"
"github.com/riotpot/pkg/services"
)

const (
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion pkg/plugin/coapd/coapd.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"github.com/plgd-dev/go-coap/v2/message"
"github.com/plgd-dev/go-coap/v2/message/codes"
"github.com/plgd-dev/go-coap/v2/mux"
"github.com/riotpot/pkg/services"
"github.com/riotpot/internal/services"
)

var Plugin string
Expand Down
2 changes: 1 addition & 1 deletion pkg/plugin/echod/echod.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"net"

"github.com/riotpot/pkg/services"
"github.com/riotpot/internal/services"
"github.com/riotpot/tools/errors"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/plugin/httpd/httpd.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"log"
"net/http"

"github.com/riotpot/pkg/services"
"github.com/riotpot/internal/services"
)

var Plugin string
Expand Down
2 changes: 1 addition & 1 deletion pkg/plugin/modbusd/modbusd.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"io"
"net"

"github.com/riotpot/pkg/services"
"github.com/riotpot/internal/services"
"github.com/riotpot/tools/errors"
"github.com/xiegeo/modbusone"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/plugin/mqttd/mqttd.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"net"
"sync"

"github.com/riotpot/pkg/services"
"github.com/riotpot/internal/services"
"github.com/riotpot/tools/errors"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/plugin/sshd/sshd.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"net"
"sync"

"github.com/riotpot/internal/services"
"github.com/riotpot/pkg/fake/shell"
"github.com/riotpot/pkg/services"
"github.com/riotpot/tools/errors"
"github.com/traetox/pty"
"golang.org/x/crypto/ssh"
Expand Down
2 changes: 1 addition & 1 deletion pkg/plugin/telnetd/telnetd.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"log"
"net"

"github.com/riotpot/internal/services"
"github.com/riotpot/pkg/fake/shell"
"github.com/riotpot/pkg/services"
"github.com/riotpot/tools/errors"
)

Expand Down
2 changes: 1 addition & 1 deletion test/internal/proxy/proxy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"testing"

"github.com/riotpot/internal/proxy"
"github.com/riotpot/pkg/services"
"github.com/riotpot/internal/services"
"github.com/stretchr/testify/assert"
)

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"log"
"time"

"github.com/riotpot/pkg/services"
"github.com/riotpot/internal/services"
"github.com/stretchr/testify/assert"

"github.com/plgd-dev/go-coap/v2/message"
Expand Down

0 comments on commit 30b1de9

Please sign in to comment.