Moved everything to internal
This commit is contained in:
parent
cb52ddab05
commit
f3dede1e33
|
@ -1 +1,3 @@
|
|||
**/userdata/*
|
||||
examples
|
||||
tests
|
|
@ -2,7 +2,7 @@ package gosimplenpm
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"gosimplenpm/config"
|
||||
"gosimplenpm/internal/config"
|
||||
"os"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
|
|
|
@ -2,8 +2,8 @@ package gosimplenpm
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"gosimplenpm/config"
|
||||
"gosimplenpm/handler"
|
||||
"gosimplenpm/internal/config"
|
||||
"gosimplenpm/internal/handler"
|
||||
"os"
|
||||
|
||||
"github.com/sirupsen/logrus"
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
package handler
|
||||
|
||||
import (
|
||||
"gosimplenpm/config"
|
||||
"gosimplenpm/middlewares"
|
||||
"gosimplenpm/internal/config"
|
||||
"gosimplenpm/internal/middlewares"
|
||||
"net/http"
|
||||
"time"
|
||||
|
|
@ -8,8 +8,8 @@ import (
|
|||
"github.com/gorilla/mux"
|
||||
"github.com/sirupsen/logrus"
|
||||
|
||||
"gosimplenpm/config"
|
||||
"gosimplenpm/storage"
|
||||
"gosimplenpm/internal/config"
|
||||
"gosimplenpm/internal/storage"
|
||||
)
|
||||
|
||||
func GetPackage(lg *logrus.Logger, cfg config.Config) http.HandlerFunc {
|
|
@ -0,0 +1 @@
|
|||
package handler
|
|
@ -3,9 +3,9 @@ package handler
|
|||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"gosimplenpm/config"
|
||||
"gosimplenpm/serviceidos"
|
||||
"gosimplenpm/storage"
|
||||
"gosimplenpm/internal/config"
|
||||
"gosimplenpm/internal/serviceidos"
|
||||
"gosimplenpm/internal/storage"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"path"
|
|
@ -3,9 +3,9 @@ package handler
|
|||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"gosimplenpm/config"
|
||||
"gosimplenpm/serviceidos"
|
||||
"gosimplenpm/storage"
|
||||
"gosimplenpm/internal/config"
|
||||
"gosimplenpm/internal/serviceidos"
|
||||
"gosimplenpm/internal/storage"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"strconv"
|
|
@ -3,9 +3,9 @@ package handler
|
|||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"gosimplenpm/config"
|
||||
"gosimplenpm/serviceidos"
|
||||
"gosimplenpm/storage"
|
||||
"gosimplenpm/internal/config"
|
||||
"gosimplenpm/internal/serviceidos"
|
||||
"gosimplenpm/internal/storage"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"strconv"
|
|
@ -3,9 +3,9 @@ package handler
|
|||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"gosimplenpm/config"
|
||||
"gosimplenpm/serviceidos"
|
||||
"gosimplenpm/storage"
|
||||
"gosimplenpm/internal/config"
|
||||
"gosimplenpm/internal/serviceidos"
|
||||
"gosimplenpm/internal/storage"
|
||||
"io"
|
||||
"net/http"
|
||||
"net/url"
|
|
@ -2,8 +2,8 @@ package handler
|
|||
|
||||
import (
|
||||
"bytes"
|
||||
"gosimplenpm/config"
|
||||
"gosimplenpm/storage"
|
||||
"gosimplenpm/internal/config"
|
||||
"gosimplenpm/internal/storage"
|
||||
"io"
|
||||
"net/http"
|
||||
"net/url"
|
|
@ -1,7 +1,7 @@
|
|||
package middlewares
|
||||
|
||||
import (
|
||||
"gosimplenpm/config"
|
||||
"gosimplenpm/internal/config"
|
||||
"net/http"
|
||||
"strings"
|
||||
)
|
|
@ -12,7 +12,7 @@ import (
|
|||
"path"
|
||||
"strings"
|
||||
|
||||
"gosimplenpm/serviceidos"
|
||||
"gosimplenpm/internal/serviceidos"
|
||||
"path/filepath"
|
||||
|
||||
"github.com/sirupsen/logrus"
|
Loading…
Reference in New Issue