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