Skip to content
This repository has been archived by the owner on Nov 5, 2023. It is now read-only.

Commit

Permalink
Move excel_adapter to pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
jmaralo committed Oct 18, 2023
1 parent 15fe59e commit b0a0526
Show file tree
Hide file tree
Showing 16 changed files with 10 additions and 23 deletions.
2 changes: 1 addition & 1 deletion cmd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import (
"github.com/HyperloopUPV-H8/h9-backend/internal/blcu"
"github.com/HyperloopUPV-H8/h9-backend/internal/connection_transfer"
"github.com/HyperloopUPV-H8/h9-backend/internal/data_transfer"
"github.com/HyperloopUPV-H8/h9-backend/internal/excel_adapter"
"github.com/HyperloopUPV-H8/h9-backend/internal/file_logger"
"github.com/HyperloopUPV-H8/h9-backend/internal/logger_handler"
"github.com/HyperloopUPV-H8/h9-backend/internal/message_transfer"
"github.com/HyperloopUPV-H8/h9-backend/internal/server"
"github.com/HyperloopUPV-H8/h9-backend/internal/value_logger"
"github.com/HyperloopUPV-H8/h9-backend/internal/vehicle"
"github.com/HyperloopUPV-H8/h9-backend/pkg/excel_adapter"
)

type Config struct {
Expand Down
15 changes: 1 addition & 14 deletions cmd/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,8 @@ programable_boards = "/uploadableBoards"
connections = "/backend"
file_server = "/"

[server.audience]
address = "192.168.0.9:4000"
static = "./mobile_front"

[server.audience.endpoints]
pod_data = "/podDataStructure"
order_data = "/orderStructures"
programable_boards = "/uploadableBoards"
connections = "/backend"
file_server = "/"

[vehicle]
boards = ["BLCU"]
boards = []

[vehicle.network]
tcp_client_tag = "TCP_CLIENT"
Expand All @@ -46,9 +35,7 @@ add_state_orders_id_key = "add_state_orders"
remove_state_orders_id_key = "remove_state_orders"

[excel.download]
#id = "1XE9V2PI0hwSdAC8P6MePnSLyzADqsdWCOlx_kct7dps"
id="1b_nOrWqjMLOSEFIV9dMUObnJ15J7ypmF-KVJ4qztAtw"
#id = "1BEwASubu0el9oQA6PSwVKaNU-Q6gbJ40JR6kgqguKYE"
name = "ade.xlsx"
path = "."

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (
"github.com/fatih/color"

ade_linter "github.com/HyperloopUPV-H8/ade-linter"
"github.com/HyperloopUPV-H8/h9-backend/internal/excel_adapter/internals"
internalModels "github.com/HyperloopUPV-H8/h9-backend/internal/excel_adapter/internals/models"
"github.com/HyperloopUPV-H8/h9-backend/internal/excel_adapter/models"
"github.com/HyperloopUPV-H8/h9-backend/pkg/excel_adapter/internals"
internalModels "github.com/HyperloopUPV-H8/h9-backend/pkg/excel_adapter/internals/models"
"github.com/HyperloopUPV-H8/h9-backend/pkg/excel_adapter/models"
trace "github.com/rs/zerolog/log"
"github.com/xuri/excelize/v2"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"log"
"strings"

"github.com/HyperloopUPV-H8/h9-backend/internal/excel_adapter/internals/models"
"github.com/HyperloopUPV-H8/h9-backend/pkg/excel_adapter/internals/models"
"github.com/xuri/excelize/v2"
)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package models

import (
"github.com/HyperloopUPV-H8/h9-backend/internal/excel_adapter/internals/models"
"github.com/HyperloopUPV-H8/h9-backend/pkg/excel_adapter/internals/models"
)

const (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package models

import "github.com/HyperloopUPV-H8/h9-backend/internal/excel_adapter/internals/models"
import "github.com/HyperloopUPV-H8/h9-backend/pkg/excel_adapter/internals/models"

type Description struct {
ID string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package models
import (
"fmt"

"github.com/HyperloopUPV-H8/h9-backend/internal/excel_adapter/internals"
"github.com/HyperloopUPV-H8/h9-backend/pkg/excel_adapter/internals"
)

type Packet struct {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package models

import "github.com/HyperloopUPV-H8/h9-backend/internal/excel_adapter/internals/models"
import "github.com/HyperloopUPV-H8/h9-backend/pkg/excel_adapter/internals/models"

type Value struct {
ID string
Expand Down

0 comments on commit b0a0526

Please sign in to comment.