Skip to content

Commit 6529937

Browse files
committed
update code chapter 2
1 parent b2dcc68 commit 6529937

File tree

6 files changed

+13
-9
lines changed

6 files changed

+13
-9
lines changed

Chapter02/myevents/src/eventsservice/main.go

+4-3
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ package main
33
import (
44
"flag"
55
"fmt"
6-
"gocloudprogramming/chapter2/myevents/src/eventsservice/rest"
7-
"gocloudprogramming/chapter2/myevents/src/lib/configuration"
8-
"gocloudprogramming/chapter2/myevents/src/lib/persistence/dblayer"
96
"log"
7+
8+
"github.com/PacktPublishing/Cloud-Native-programming-with-Golang/chapter02/myevents/src/eventsservice/rest"
9+
"github.com/PacktPublishing/Cloud-Native-programming-with-Golang/chapter02/myevents/src/lib/configuration"
10+
"github.com/PacktPublishing/Cloud-Native-programming-with-Golang/chapter02/myevents/src/lib/persistence/dblayer"
1011
)
1112

1213
func main() {

Chapter02/myevents/src/eventsservice/rest/handlers.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ import (
44
"encoding/hex"
55
"encoding/json"
66
"fmt"
7-
"gocloudprogramming/chapter2/myevents/src/lib/persistence"
87
"net/http"
98
"strings"
109

10+
"github.com/PacktPublishing/Cloud-Native-programming-with-Golang/chapter02/myevents/src/lib/persistence"
11+
1112
"github.com/gorilla/mux"
1213
)
1314

Chapter02/myevents/src/eventsservice/rest/rest.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
package rest
22

33
import (
4-
"gocloudprogramming/chapter2/myevents/src/lib/persistence"
54
"net/http"
65

6+
"github.com/PacktPublishing/Cloud-Native-programming-with-Golang/chapter02/myevents/src/lib/persistence"
7+
78
"github.com/gorilla/mux"
89
)
910

Chapter02/myevents/src/lib/configuration/configuration.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ package configuration
33
import (
44
"encoding/json"
55
"fmt"
6-
"gocloudprogramming/chapter2/myevents/src/lib/persistence/dblayer"
76
"os"
7+
8+
"github.com/PacktPublishing/Cloud-Native-programming-with-Golang/chapter02/myevents/src/lib/persistence/dblayer"
89
)
910

1011
var (

Chapter02/myevents/src/lib/persistence/dblayer/dblayer.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package dblayer
22

33
import (
4-
"gocloudprogramming/chapter2/myevents/src/lib/persistence"
5-
"gocloudprogramming/chapter2/myevents/src/lib/persistence/mongolayer"
4+
"github.com/PacktPublishing/Cloud-Native-programming-with-Golang/chapter02/myevents/src/lib/persistence"
5+
"github.com/PacktPublishing/Cloud-Native-programming-with-Golang/chapter02/myevents/src/lib/persistence/mongolayer"
66
)
77

88
type DBTYPE string

Chapter02/myevents/src/lib/persistence/mongolayer/mongolayer.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package mongolayer
22

33
import (
4-
"gocloudprogramming/chapter2/myevents/src/lib/persistence"
4+
"github.com/PacktPublishing/Cloud-Native-programming-with-Golang/chapter02/myevents/src/lib/persistence"
55

66
mgo "gopkg.in/mgo.v2"
77
"gopkg.in/mgo.v2/bson"

0 commit comments

Comments
 (0)