Browse Source

rename backend to pkg

Torkel Ödegaard 11 years ago
parent
commit
9e30599f1f

+ 1 - 1
grafana

@@ -1 +1 @@
-Subproject commit bfe1ef07330fcfcdbc3aa9ddd4eef827ee48f316
+Subproject commit 472e1c6d8e4f6b1ea094d6e017e1a98803e48989

+ 1 - 1
grafana.go

@@ -5,7 +5,7 @@ import (
 	"time"
 
 	log "github.com/alecthomas/log4go"
-	"github.com/torkelo/grafana-pro/backend/server"
+	"github.com/torkelo/grafana-pro/pkg/server"
 )
 
 func main() {

+ 2 - 2
backend/api/api.go → pkg/api/api.go

@@ -6,8 +6,8 @@ import (
 	log "github.com/alecthomas/log4go"
 	"github.com/gin-gonic/gin"
 	"github.com/gorilla/sessions"
-	"github.com/torkelo/grafana-pro/backend/components"
-	"github.com/torkelo/grafana-pro/backend/stores"
+	"github.com/torkelo/grafana-pro/pkg/components"
+	"github.com/torkelo/grafana-pro/pkg/stores"
 )
 
 type HttpServer struct {

+ 1 - 1
backend/api/api_dashboard.go → pkg/api/api_dashboard.go

@@ -2,7 +2,7 @@ package api
 
 import (
 	"github.com/gin-gonic/gin"
-	"github.com/torkelo/grafana-pro/backend/models"
+	"github.com/torkelo/grafana-pro/pkg/models"
 )
 
 func init() {

+ 0 - 0
backend/api/api_login.go → pkg/api/api_login.go


+ 0 - 0
backend/api/api_models.go → pkg/api/api_models.go


+ 0 - 0
backend/api/api_render.go → pkg/api/api_render.go


+ 0 - 0
backend/api/api_test.go → pkg/api/api_test.go


+ 0 - 0
backend/components/phantom_renderer.go → pkg/components/phantom_renderer.go


+ 0 - 0
backend/components/phantom_renderer_test.go → pkg/components/phantom_renderer_test.go


+ 0 - 0
backend/configuration/configuration.go → pkg/configuration/configuration.go


+ 0 - 0
backend/models/dashboards.go → pkg/models/dashboards.go


+ 2 - 2
backend/server/server.go → pkg/server/server.go

@@ -1,8 +1,8 @@
 package server
 
 import (
-	"github.com/torkelo/grafana-pro/backend/api"
-	"github.com/torkelo/grafana-pro/backend/stores"
+	"github.com/torkelo/grafana-pro/pkg/api"
+	"github.com/torkelo/grafana-pro/pkg/stores"
 )
 
 type Server struct {

+ 1 - 1
backend/stores/file_store.go → pkg/stores/file_store.go

@@ -8,7 +8,7 @@ import (
 	"strings"
 
 	log "github.com/alecthomas/log4go"
-	"github.com/torkelo/grafana-pro/backend/models"
+	"github.com/torkelo/grafana-pro/pkg/models"
 )
 
 type fileStore struct {

+ 1 - 1
backend/stores/file_store_test.go → pkg/stores/file_store_test.go

@@ -9,7 +9,7 @@ import (
 	"testing"
 
 	. "github.com/smartystreets/goconvey/convey"
-	"github.com/torkelo/grafana-pro/backend/models"
+	"github.com/torkelo/grafana-pro/pkg/models"
 )
 
 func TestFileStore(t *testing.T) {

+ 1 - 1
backend/stores/store.go → pkg/stores/store.go

@@ -1,7 +1,7 @@
 package stores
 
 import (
-	"github.com/torkelo/grafana-pro/backend/models"
+	"github.com/torkelo/grafana-pro/pkg/models"
 )
 
 type Store interface {