mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-22 07:15:25 +00:00
Fixing up services
This commit is contained in:
@@ -8,7 +8,7 @@ import (
|
|||||||
log "github.com/micro/go-micro/v3/logger"
|
log "github.com/micro/go-micro/v3/logger"
|
||||||
store "github.com/micro/micro/v3/service/store"
|
store "github.com/micro/micro/v3/service/store"
|
||||||
|
|
||||||
pb "github.com/micro/services/kv/proto"
|
pb "github.com/micro/services/test/kv/proto"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Example struct{}
|
type Example struct{}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/micro/services/kv/handler"
|
"github.com/micro/services/test/kv/handler"
|
||||||
|
|
||||||
"github.com/micro/micro/v3/service"
|
"github.com/micro/micro/v3/service"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
|
|
||||||
"github.com/micro/micro/v3/service"
|
"github.com/micro/micro/v3/service"
|
||||||
"github.com/micro/micro/v3/service/logger"
|
"github.com/micro/micro/v3/service/logger"
|
||||||
pb "github.com/micro/services/pubsub/proto"
|
pb "github.com/micro/services/test/pubsub/proto"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Pub will publish messages every second
|
// Pub will publish messages every second
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
|
|
||||||
"github.com/micro/micro/v3/service"
|
"github.com/micro/micro/v3/service"
|
||||||
"github.com/micro/micro/v3/service/logger"
|
"github.com/micro/micro/v3/service/logger"
|
||||||
pb "github.com/micro/services/routes/proto"
|
pb "github.com/micro/services/test/routes/proto"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/golang/protobuf/proto"
|
"github.com/golang/protobuf/proto"
|
||||||
pb "github.com/micro/services/routes/proto"
|
pb "github.com/micro/services/test/routes/proto"
|
||||||
)
|
)
|
||||||
|
|
||||||
// RouteGuide implements the route guide handler interface
|
// RouteGuide implements the route guide handler interface
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"math"
|
"math"
|
||||||
|
|
||||||
pb "github.com/micro/services/routes/proto"
|
pb "github.com/micro/services/test/routes/proto"
|
||||||
)
|
)
|
||||||
|
|
||||||
func toRadians(num float64) float64 {
|
func toRadians(num float64) float64 {
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ import (
|
|||||||
"github.com/micro/micro/v3/service"
|
"github.com/micro/micro/v3/service"
|
||||||
"github.com/micro/micro/v3/service/logger"
|
"github.com/micro/micro/v3/service/logger"
|
||||||
|
|
||||||
pb "github.com/micro/services/routes/proto"
|
pb "github.com/micro/services/test/routes/proto"
|
||||||
"github.com/micro/services/routes/routes-server/handler"
|
"github.com/micro/services/test/routes/routes-server/handler"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/micro/services/template/handler"
|
"github.com/micro/services/test/template/handler"
|
||||||
|
|
||||||
"github.com/micro/micro/v3/service"
|
"github.com/micro/micro/v3/service"
|
||||||
"github.com/micro/micro/v3/service/logger"
|
"github.com/micro/micro/v3/service/logger"
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
|
|
||||||
log "github.com/micro/micro/v3/service/logger"
|
log "github.com/micro/micro/v3/service/logger"
|
||||||
|
|
||||||
idiomatic "github.com/micro/services/template/proto"
|
idiomatic "github.com/micro/services/test/template/proto"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Idiomatic struct{}
|
type Idiomatic struct{}
|
||||||
|
|||||||
Reference in New Issue
Block a user