Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the deprecated vendor folder #117

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
8 changes: 4 additions & 4 deletions apache-beam-analysis/MQTT_Publisher/testmachine.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package main

import (
"time"
"fmt"
"encoding/json"
"fmt"
"time"

"github.com/yosssi/gmq/mqtt"
"github.com/yosssi/gmq/mqtt/client"
"github.com/yosssi/gmq/mqtt/client"
)

type ReadDataFn struct {
Expand Down Expand Up @@ -52,7 +52,7 @@ func main() {
for i = 0; i < 20; i++ {
time.Sleep(2 * time.Second)
Data.ID = i
Data.CreateTime = time.Now().Local()
Data.CreateTime = time.Now().Local()
if i == 1 {
Data.Value = "90"
Data.MachineID = "M2000"
Expand Down
5 changes: 5 additions & 0 deletions apache-beam-analysis/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module github.com/kubeedge/examples/apache-beam-analysis

go 1.16

require github.com/yosssi/gmq v0.0.1
2 changes: 2 additions & 0 deletions apache-beam-analysis/go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github.com/yosssi/gmq v0.0.1 h1:GhlDVaAQoi3Mvjul/qJXXGfL4JBeE0GQwbWp3eIsja8=
github.com/yosssi/gmq v0.0.1/go.mod h1:mReykazh0U1JabvuWh1PEbzzJftqOQWsjr0Lwg5jL1Y=
8 changes: 4 additions & 4 deletions ke-twitter-demo/Pi_app/offline.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package main

import (
"encoding/json"
"flag"
"fmt"
"time"
"encoding/json"

"github.com/yosssi/gmq/mqtt"
"github.com/yosssi/gmq/mqtt/client"
Expand Down Expand Up @@ -39,11 +39,11 @@ func main() {

data := types.DeviceTwinUpdate{}
data.EventID = "12345"
data.Timestamp = time.Now().Unix()/1e6
data.Timestamp = time.Now().Unix() /1e6
data.Twin = map[string]*types.MsgTwin{"track": &types.MsgTwin{Expected:&types.TwinValue{Value:songname, Metadata:&types.ValueMetadata{Timestamp: time.Now().Unix()/1e6}}, Optional: &optional, Metadata:&types.TypeMetadata{Type:"string"}, ExpectedVersion: &types.TwinVersion{CloudVersion: 22022, EdgeVersion:0}}}

// Publish a message.
bytes,_:=json.Marshal(data)
bytes, _ := json.Marshal(data)
fmt.Println(string(bytes))
err = cli.Publish(&client.PublishOptions{
QoS: mqtt.QoS0,
Expand All @@ -54,7 +54,7 @@ func main() {
panic(err)
}

time.Sleep(2*time.Second)
time.Sleep(2 * time.Second)
// Disconnect the Network Connection.
if err := cli.Disconnect(); err != nil {
panic(err)
Expand Down
22 changes: 0 additions & 22 deletions ke-twitter-demo/vendor/github.com/cenkalti/backoff/.gitignore

This file was deleted.

10 changes: 0 additions & 10 deletions ke-twitter-demo/vendor/github.com/cenkalti/backoff/.travis.yml

This file was deleted.

20 changes: 0 additions & 20 deletions ke-twitter-demo/vendor/github.com/cenkalti/backoff/LICENSE

This file was deleted.

30 changes: 0 additions & 30 deletions ke-twitter-demo/vendor/github.com/cenkalti/backoff/README.md

This file was deleted.

66 changes: 0 additions & 66 deletions ke-twitter-demo/vendor/github.com/cenkalti/backoff/backoff.go

This file was deleted.

63 changes: 0 additions & 63 deletions ke-twitter-demo/vendor/github.com/cenkalti/backoff/context.go

This file was deleted.

Loading