diff --git a/cmd/config.go b/cmd/config.go index 3663ea0..8fce507 100644 --- a/cmd/config.go +++ b/cmd/config.go @@ -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 { diff --git a/cmd/config.toml b/cmd/config.toml index 1c87cd4..0116db3 100644 --- a/cmd/config.toml +++ b/cmd/config.toml @@ -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" @@ -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 = "." diff --git a/internal/excel_adapter/excel_adapter.go b/pkg/excel_adapter/excel_adapter.go similarity index 95% rename from internal/excel_adapter/excel_adapter.go rename to pkg/excel_adapter/excel_adapter.go index 2d05909..c2e1bf0 100644 --- a/internal/excel_adapter/excel_adapter.go +++ b/pkg/excel_adapter/excel_adapter.go @@ -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" ) diff --git a/internal/excel_adapter/internals/excel_reader.go b/pkg/excel_adapter/internals/excel_reader.go similarity index 97% rename from internal/excel_adapter/internals/excel_reader.go rename to pkg/excel_adapter/internals/excel_reader.go index e6a523d..14632ed 100644 --- a/internal/excel_adapter/internals/excel_reader.go +++ b/pkg/excel_adapter/internals/excel_reader.go @@ -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" ) diff --git a/internal/excel_adapter/internals/excel_retriever.go b/pkg/excel_adapter/internals/excel_retriever.go similarity index 100% rename from internal/excel_adapter/internals/excel_retriever.go rename to pkg/excel_adapter/internals/excel_retriever.go diff --git a/internal/excel_adapter/internals/id_expander.go b/pkg/excel_adapter/internals/id_expander.go similarity index 100% rename from internal/excel_adapter/internals/id_expander.go rename to pkg/excel_adapter/internals/id_expander.go diff --git a/internal/excel_adapter/internals/models/document.go b/pkg/excel_adapter/internals/models/document.go similarity index 100% rename from internal/excel_adapter/internals/models/document.go rename to pkg/excel_adapter/internals/models/document.go diff --git a/internal/excel_adapter/internals/models/row.go b/pkg/excel_adapter/internals/models/row.go similarity index 100% rename from internal/excel_adapter/internals/models/row.go rename to pkg/excel_adapter/internals/models/row.go diff --git a/internal/excel_adapter/internals/models/sheet.go b/pkg/excel_adapter/internals/models/sheet.go similarity index 100% rename from internal/excel_adapter/internals/models/sheet.go rename to pkg/excel_adapter/internals/models/sheet.go diff --git a/internal/excel_adapter/internals/models/table.go b/pkg/excel_adapter/internals/models/table.go similarity index 100% rename from internal/excel_adapter/internals/models/table.go rename to pkg/excel_adapter/internals/models/table.go diff --git a/internal/excel_adapter/models/board.go b/pkg/excel_adapter/models/board.go similarity index 96% rename from internal/excel_adapter/models/board.go rename to pkg/excel_adapter/models/board.go index 886264e..11ec7ec 100644 --- a/internal/excel_adapter/models/board.go +++ b/pkg/excel_adapter/models/board.go @@ -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 ( diff --git a/internal/excel_adapter/models/description.go b/pkg/excel_adapter/models/description.go similarity index 85% rename from internal/excel_adapter/models/description.go rename to pkg/excel_adapter/models/description.go index 6efb7c2..813c430 100644 --- a/internal/excel_adapter/models/description.go +++ b/pkg/excel_adapter/models/description.go @@ -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 diff --git a/internal/excel_adapter/models/global_info.go b/pkg/excel_adapter/models/global_info.go similarity index 100% rename from internal/excel_adapter/models/global_info.go rename to pkg/excel_adapter/models/global_info.go diff --git a/internal/excel_adapter/models/packet.go b/pkg/excel_adapter/models/packet.go similarity index 91% rename from internal/excel_adapter/models/packet.go rename to pkg/excel_adapter/models/packet.go index b859e12..146a6f9 100644 --- a/internal/excel_adapter/models/packet.go +++ b/pkg/excel_adapter/models/packet.go @@ -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 { diff --git a/internal/excel_adapter/models/structure.go b/pkg/excel_adapter/models/structure.go similarity index 100% rename from internal/excel_adapter/models/structure.go rename to pkg/excel_adapter/models/structure.go diff --git a/internal/excel_adapter/models/value.go b/pkg/excel_adapter/models/value.go similarity index 88% rename from internal/excel_adapter/models/value.go rename to pkg/excel_adapter/models/value.go index e5aecff..843f18e 100644 --- a/internal/excel_adapter/models/value.go +++ b/pkg/excel_adapter/models/value.go @@ -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