From 198c49b493d34df57f06ddf886b69f79edbab134 Mon Sep 17 00:00:00 2001 From: pluto <2631223275@qq.com> Date: Fri, 18 Aug 2023 10:41:57 +0800 Subject: [PATCH] mysql conversion --- test/data-conversion/kafka-conversation.go | 17 +---------------- test/data-conversion/kafka_test.go | 14 -------------- test/data-conversion/mongodb-conversion.go | 14 -------------- test/data-conversion/mysql-conversion.go | 20 ++------------------ test/data-conversion/mysql_test.go | 14 -------------- test/data-conversion/redis-conversion.go | 14 -------------- 6 files changed, 3 insertions(+), 90 deletions(-) diff --git a/test/data-conversion/kafka-conversation.go b/test/data-conversion/kafka-conversation.go index e3a26e009..f39aa195f 100644 --- a/test/data-conversion/kafka-conversation.go +++ b/test/data-conversion/kafka-conversation.go @@ -1,28 +1,13 @@ -// Copyright © 2023 OpenIM. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - package data_conversion import ( "fmt" - "github.com/Shopify/sarama" ) var ( topic = "latestMsgToRedis" - addr = "127.0.0.1:9092" + addr = "43.128.72.19:9092" ) var consumer sarama.Consumer diff --git a/test/data-conversion/kafka_test.go b/test/data-conversion/kafka_test.go index e926c4541..8822eca54 100644 --- a/test/data-conversion/kafka_test.go +++ b/test/data-conversion/kafka_test.go @@ -1,17 +1,3 @@ -// Copyright © 2023 OpenIM. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - package data_conversion import "testing" diff --git a/test/data-conversion/mongodb-conversion.go b/test/data-conversion/mongodb-conversion.go index 975b28ead..08e247509 100644 --- a/test/data-conversion/mongodb-conversion.go +++ b/test/data-conversion/mongodb-conversion.go @@ -1,15 +1 @@ -// Copyright © 2023 OpenIM. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - package data_conversion diff --git a/test/data-conversion/mysql-conversion.go b/test/data-conversion/mysql-conversion.go index 08d7ab789..c493fb81d 100644 --- a/test/data-conversion/mysql-conversion.go +++ b/test/data-conversion/mysql-conversion.go @@ -1,29 +1,13 @@ -// Copyright © 2023 OpenIM. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - package data_conversion import ( "context" "fmt" - "time" - + "github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/table/relation" "github.com/OpenIMSDK/tools/log" "gorm.io/driver/mysql" "gorm.io/gorm" - - "github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/table/relation" + "time" ) var ( diff --git a/test/data-conversion/mysql_test.go b/test/data-conversion/mysql_test.go index 3e3f3ad06..57bb5db65 100644 --- a/test/data-conversion/mysql_test.go +++ b/test/data-conversion/mysql_test.go @@ -1,17 +1,3 @@ -// Copyright © 2023 OpenIM. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - package data_conversion import "testing" diff --git a/test/data-conversion/redis-conversion.go b/test/data-conversion/redis-conversion.go index 975b28ead..08e247509 100644 --- a/test/data-conversion/redis-conversion.go +++ b/test/data-conversion/redis-conversion.go @@ -1,15 +1 @@ -// Copyright © 2023 OpenIM. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - package data_conversion