Browse Source

Refactoring

- change module name
Alexey Kim 1 year ago
parent
commit
1d1b704beb
5 changed files with 8 additions and 8 deletions
  1. 2 2
      config/config.go
  2. 1 1
      database/clickhouse/config.go
  3. 3 3
      database/interface/config.go
  4. 1 1
      database/interface/database.go
  5. 1 1
      go.mod

+ 2 - 2
config/config.go

@@ -1,8 +1,8 @@
 package config
 
 import (
-	"beejay.kim/craft/api/database"
 	"fmt"
+	_interface "git.beejay.kim/Craft/Api/database/interface"
 	"time"
 )
 
@@ -10,7 +10,7 @@ type Configuration struct {
 	Timeout int    `yaml:"timeout"`
 	Issuer  string `yaml:"issuer"`
 
-	Database database.Databases `yaml:"database"`
+	Database _interface.Databases `yaml:"database"`
 }
 
 func (c Configuration) Invalidate() error {

+ 1 - 1
database/clickhouse/config.go

@@ -1,8 +1,8 @@
 package clickhouse
 
 import (
-	"beejay.kim/craft/api/config"
 	"fmt"
+	"git.beejay.kim/Craft/Api/config"
 	"github.com/ClickHouse/clickhouse-go/v2"
 	"strings"
 )

+ 3 - 3
database/config.go → database/interface/config.go

@@ -1,8 +1,8 @@
-package database
+package _interface
 
 import (
-	"beejay.kim/craft/api/config"
-	"beejay.kim/craft/api/database/clickhouse"
+	"git.beejay.kim/Craft/Api/config"
+	"git.beejay.kim/Craft/Api/database/clickhouse"
 )
 
 type Databases struct {

+ 1 - 1
database/database.go → database/interface/database.go

@@ -1,4 +1,4 @@
-package database
+package _interface
 
 import (
 	"context"

+ 1 - 1
go.mod

@@ -1,4 +1,4 @@
-module beejay.kim/craft/api
+module git.beejay.kim/Craft/Api
 
 go 1.20