Browse Source

更新 项目包名称为 goInOut

pull/2/head
lucas 2 months ago
parent
commit
4a8f314727
  1. 4
      adaptors/光电光栅中科to明月峡.go
  2. 2
      adaptors/安心云es主题to河北矿山监测.go
  3. 6
      adaptors/安心云最新设备数据toES.go
  4. 4
      adaptors/振动to明月峡.go
  5. 2
      adaptors/振动to湘潭健康监测.go
  6. 6
      adaptors/振动to重庆资管.go
  7. 6
      adaptors/欧乐称重to重庆资管.go
  8. 4
      adaptors/知物云主题数据to广州高支模省平台.go
  9. 2
      adaptors/统一采集to明月峡.go
  10. 4
      adaptors/统一采集to江苏省农村公路桥梁监测.go
  11. 2
      adaptors/统一采集to湘潭健康监测.go
  12. 6
      adaptors/统一采集to重庆资管.go
  13. 2
      adaptors/视觉位移to魏家滑坡.go
  14. 2
      consumers/AXYraw/config.go
  15. 2
      consumers/CDJYSN/config.go
  16. 2
      consumers/CQZG/config.go
  17. 2
      consumers/GZGZM/config.go
  18. 2
      consumers/HTJC/config.go
  19. 2
      consumers/JSNCGLQL/config.go
  20. 2
      consumers/MYX/config.go
  21. 2
      consumers/WJHP/config.go
  22. 10
      consumers/consumerAXYraw.go
  23. 10
      consumers/consumerCDJYSN.go
  24. 6
      consumers/consumerCQZG.go
  25. 8
      consumers/consumerGZGZM.go
  26. 6
      consumers/consumerHTJC.go
  27. 6
      consumers/consumerJSNCGLQL.go
  28. 8
      consumers/consumerMYX.go
  29. 8
      consumers/consumerWJHP.go
  30. 2
      dbHelper/elasticsearchHelper.go
  31. 2
      go.mod
  32. 4
      main.go
  33. 2
      monitors/httpMonitor.go

4
adaptors/光电光栅中科to明月峡.go

@ -3,8 +3,8 @@ package adaptors
import ( import (
"bytes" "bytes"
"fmt" "fmt"
"goUpload/consumers/MYX" "goInOut/consumers/MYX"
"goUpload/utils" "goInOut/utils"
"log" "log"
"strconv" "strconv"
"strings" "strings"

2
adaptors/安心云es主题to河北矿山监测.go

@ -4,7 +4,7 @@ import (
"bytes" "bytes"
"encoding/json" "encoding/json"
"fmt" "fmt"
"goUpload/models" "goInOut/models"
"log" "log"
"math" "math"
"strings" "strings"

6
adaptors/安心云最新设备数据toES.go

@ -3,9 +3,9 @@ package adaptors
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"goUpload/consumers/AXYraw" "goInOut/consumers/AXYraw"
"goUpload/dbHelper" "goInOut/dbHelper"
"goUpload/models" "goInOut/models"
"log" "log"
"time" "time"
) )

4
adaptors/振动to明月峡.go

@ -3,8 +3,8 @@ package adaptors
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"goUpload/models" "goInOut/models"
"goUpload/utils" "goInOut/utils"
"log" "log"
"strings" "strings"
"time" "time"

2
adaptors/振动to湘潭健康监测.go

@ -2,7 +2,7 @@ package adaptors
import ( import (
"encoding/json" "encoding/json"
"goUpload/models" "goInOut/models"
"log" "log"
"math" "math"
"time" "time"

6
adaptors/振动to重庆资管.go

@ -3,9 +3,9 @@ package adaptors
import ( import (
"crypto/rc4" "crypto/rc4"
"encoding/json" "encoding/json"
"goUpload/consumers/CQZG/protoFiles" "goInOut/consumers/CQZG/protoFiles"
"goUpload/models" "goInOut/models"
"goUpload/utils" "goInOut/utils"
"google.golang.org/protobuf/proto" "google.golang.org/protobuf/proto"
"log" "log"
) )

6
adaptors/欧乐称重to重庆资管.go

@ -4,9 +4,9 @@ import (
"crypto/rc4" "crypto/rc4"
"encoding/hex" "encoding/hex"
"encoding/json" "encoding/json"
"goUpload/consumers/CQZG/protoFiles" "goInOut/consumers/CQZG/protoFiles"
"goUpload/models" "goInOut/models"
"goUpload/utils" "goInOut/utils"
"google.golang.org/protobuf/proto" "google.golang.org/protobuf/proto"
"log" "log"
"strconv" "strconv"

4
adaptors/知物云主题数据to广州高支模省平台.go

@ -3,8 +3,8 @@ package adaptors
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"goUpload/consumers/GZGZM" "goInOut/consumers/GZGZM"
"goUpload/models" "goInOut/models"
"log" "log"
"math" "math"
"strconv" "strconv"

2
adaptors/统一采集to明月峡.go

@ -3,7 +3,7 @@ package adaptors
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"goUpload/models" "goInOut/models"
"log" "log"
"strings" "strings"
"time" "time"

4
adaptors/统一采集to江苏省农村公路桥梁监测.go

@ -3,8 +3,8 @@ package adaptors
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"goUpload/models" "goInOut/models"
"goUpload/utils" "goInOut/utils"
"log" "log"
"time" "time"
) )

2
adaptors/统一采集to湘潭健康监测.go

@ -3,7 +3,7 @@ package adaptors
import ( import (
"encoding/hex" "encoding/hex"
"encoding/json" "encoding/json"
"goUpload/models" "goInOut/models"
"log" "log"
"math" "math"
"time" "time"

6
adaptors/统一采集to重庆资管.go

@ -4,9 +4,9 @@ import (
"crypto/rc4" "crypto/rc4"
"encoding/hex" "encoding/hex"
"encoding/json" "encoding/json"
"goUpload/consumers/CQZG/protoFiles" "goInOut/consumers/CQZG/protoFiles"
"goUpload/models" "goInOut/models"
"goUpload/utils" "goInOut/utils"
"google.golang.org/protobuf/proto" "google.golang.org/protobuf/proto"
"log" "log"
"time" "time"

2
adaptors/视觉位移to魏家滑坡.go

@ -3,7 +3,7 @@ package adaptors
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"goUpload/consumers/WJHP" "goInOut/consumers/WJHP"
"log" "log"
"strconv" "strconv"
"time" "time"

2
consumers/AXYraw/config.go

@ -1,6 +1,6 @@
package AXYraw package AXYraw
import "goUpload/config" import "goInOut/config"
type ConfigFile struct { type ConfigFile struct {
config.Consumer config.Consumer

2
consumers/CDJYSN/config.go

@ -1,6 +1,6 @@
package CDJYSN package CDJYSN
import "goUpload/config" import "goInOut/config"
type ConfigFile struct { type ConfigFile struct {
config.Consumer config.Consumer

2
consumers/CQZG/config.go

@ -1,6 +1,6 @@
package CQZG package CQZG
import "goUpload/config" import "goInOut/config"
type ConfigFile struct { type ConfigFile struct {
config.Consumer config.Consumer

2
consumers/GZGZM/config.go

@ -1,6 +1,6 @@
package GZGZM package GZGZM
import "goUpload/config" import "goInOut/config"
type ConfigFile struct { type ConfigFile struct {
config.Consumer config.Consumer

2
consumers/HTJC/config.go

@ -1,6 +1,6 @@
package HTJC package HTJC
import "goUpload/config" import "goInOut/config"
type ConfigFile struct { type ConfigFile struct {
config.Consumer config.Consumer

2
consumers/JSNCGLQL/config.go

@ -1,6 +1,6 @@
package JSNCGLQL package JSNCGLQL
import "goUpload/config" import "goInOut/config"
type ConfigFile struct { type ConfigFile struct {
config.Consumer config.Consumer

2
consumers/MYX/config.go

@ -1,6 +1,6 @@
package MYX package MYX
import "goUpload/config" import "goInOut/config"
type ConfigFile struct { type ConfigFile struct {
config.Consumer config.Consumer

2
consumers/WJHP/config.go

@ -1,6 +1,6 @@
package WJHP package WJHP
import "goUpload/config" import "goInOut/config"
type ConfigFile struct { type ConfigFile struct {
config.Consumer config.Consumer

10
consumers/consumerAXYraw.go

@ -2,11 +2,11 @@ package consumers
import ( import (
"encoding/json" "encoding/json"
"goUpload/adaptors" "goInOut/adaptors"
"goUpload/consumers/AXYraw" "goInOut/consumers/AXYraw"
"goUpload/dbHelper" "goInOut/dbHelper"
"goUpload/dbHelper/_kafka" "goInOut/dbHelper/_kafka"
"goUpload/models" "goInOut/models"
"log" "log"
"sync" "sync"
"time" "time"

10
consumers/consumerCDJYSN.go

@ -4,11 +4,11 @@ import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"github.com/robfig/cron/v3" "github.com/robfig/cron/v3"
"goUpload/adaptors" "goInOut/adaptors"
"goUpload/consumers/CDJYSN" "goInOut/consumers/CDJYSN"
"goUpload/dbHelper" "goInOut/dbHelper"
"goUpload/monitors" "goInOut/monitors"
"goUpload/utils" "goInOut/utils"
"log" "log"
"path" "path"
"time" "time"

6
consumers/consumerCQZG.go

@ -2,9 +2,9 @@ package consumers
import ( import (
"encoding/json" "encoding/json"
"goUpload/adaptors" "goInOut/adaptors"
"goUpload/consumers/CQZG" "goInOut/consumers/CQZG"
"goUpload/dbHelper" "goInOut/dbHelper"
"log" "log"
"os" "os"
"strings" "strings"

8
consumers/consumerGZGZM.go

@ -4,10 +4,10 @@ import (
"crypto/md5" "crypto/md5"
"encoding/json" "encoding/json"
"fmt" "fmt"
"goUpload/adaptors" "goInOut/adaptors"
"goUpload/consumers/GZGZM" "goInOut/consumers/GZGZM"
"goUpload/dbHelper" "goInOut/dbHelper"
"goUpload/dbHelper/_kafka" "goInOut/dbHelper/_kafka"
"io" "io"
"log" "log"
"math/rand" "math/rand"

6
consumers/consumerHTJC.go

@ -2,9 +2,9 @@ package consumers
import ( import (
"encoding/json" "encoding/json"
"goUpload/adaptors" "goInOut/adaptors"
"goUpload/consumers/HTJC" "goInOut/consumers/HTJC"
"goUpload/dbHelper" "goInOut/dbHelper"
"log" "log"
"strings" "strings"
"time" "time"

6
consumers/consumerJSNCGLQL.go

@ -2,9 +2,9 @@ package consumers
import ( import (
"encoding/json" "encoding/json"
"goUpload/adaptors" "goInOut/adaptors"
"goUpload/consumers/JSNCGLQL" "goInOut/consumers/JSNCGLQL"
"goUpload/dbHelper" "goInOut/dbHelper"
"log" "log"
"strings" "strings"
"time" "time"

8
consumers/consumerMYX.go

@ -5,10 +5,10 @@ import (
"encoding/csv" "encoding/csv"
"encoding/json" "encoding/json"
"fmt" "fmt"
"goUpload/adaptors" "goInOut/adaptors"
"goUpload/consumers/MYX" "goInOut/consumers/MYX"
"goUpload/dbHelper" "goInOut/dbHelper"
"goUpload/monitors" "goInOut/monitors"
"golang.org/x/text/encoding/unicode" "golang.org/x/text/encoding/unicode"
"log" "log"
"os" "os"

8
consumers/consumerWJHP.go

@ -2,10 +2,10 @@ package consumers
import ( import (
"encoding/json" "encoding/json"
"goUpload/adaptors" "goInOut/adaptors"
"goUpload/consumers/WJHP" "goInOut/consumers/WJHP"
"goUpload/dbHelper" "goInOut/dbHelper"
"goUpload/monitors" "goInOut/monitors"
"log" "log"
"strings" "strings"
"time" "time"

2
dbHelper/elasticsearchHelper.go

@ -7,7 +7,7 @@ import (
"fmt" "fmt"
elasticsearch6 "github.com/elastic/go-elasticsearch/v6" elasticsearch6 "github.com/elastic/go-elasticsearch/v6"
"github.com/elastic/go-elasticsearch/v6/esapi" "github.com/elastic/go-elasticsearch/v6/esapi"
"goUpload/models" "goInOut/models"
"io" "io"
"log" "log"
"strings" "strings"

2
go.mod

@ -1,4 +1,4 @@
module goUpload module goInOut
go 1.21 go 1.21

4
main.go

@ -2,8 +2,8 @@ package main
import ( import (
"fmt" "fmt"
"goUpload/config" "goInOut/config"
"goUpload/consumers" "goInOut/consumers"
"gopkg.in/natefinch/lumberjack.v2" "gopkg.in/natefinch/lumberjack.v2"
"io" "io"
"log" "log"

2
monitors/httpMonitor.go

@ -1,6 +1,6 @@
package monitors package monitors
import "goUpload/dbHelper" import "goInOut/dbHelper"
type HttpMonitor struct { type HttpMonitor struct {
HttpClient *dbHelper.HttpHelper HttpClient *dbHelper.HttpHelper

Loading…
Cancel
Save