Fixup import paths
This commit is contained in:
parent
480165695c
commit
45a619c2c6
16
README.md
16
README.md
@ -1,10 +1,10 @@
|
|||||||
# Go Micro
|
# Go Micro
|
||||||
|
|
||||||
Go Micro is a microservices client/server library utilising HTTP/RPC and protobuf. It is part of the [Micro](https://github.com/asim/micro) toolchain.
|
Go Micro is a microservices client/server library utilising HTTP/RPC and protobuf. It is part of the [Micro](https://github.com/myodc/micro) toolchain.
|
||||||
|
|
||||||
An example server can be found in go-micro/template.
|
An example server can be found in go-micro/template.
|
||||||
|
|
||||||
[![GoDoc](http://img.shields.io/badge/go-documentation-brightgreen.svg?style=flat-square)](https://godoc.org/github.com/asim/go-micro)
|
[![GoDoc](http://img.shields.io/badge/go-documentation-brightgreen.svg?style=flat-square)](https://godoc.org/github.com/myodc/go-micro)
|
||||||
|
|
||||||
## Prerequisites
|
## Prerequisites
|
||||||
|
|
||||||
@ -54,7 +54,7 @@ message Response {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Compile proto `protoc -I$GOPATH/src --go_out=$GOPATH/src $GOPATH/src/github.com/asim/go-micro/template/proto/example/example.proto`
|
Compile proto `protoc -I$GOPATH/src --go_out=$GOPATH/src $GOPATH/src/github.com/myodc/go-micro/template/proto/example/example.proto`
|
||||||
|
|
||||||
### Create request handler
|
### Create request handler
|
||||||
`go-micro/template/handler/example.go`:
|
`go-micro/template/handler/example.go`:
|
||||||
@ -64,10 +64,10 @@ package handler
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"code.google.com/p/go.net/context"
|
"code.google.com/p/go.net/context"
|
||||||
"code.google.com/p/goprotobuf/proto"
|
"github.com/golang/protobuf/proto"
|
||||||
|
|
||||||
"github.com/asim/go-micro/server"
|
"github.com/myodc/go-micro/server"
|
||||||
example "github.com/asim/go-micro/template/proto/example"
|
example "github.com/myodc/go-micro/template/proto/example"
|
||||||
log "github.com/golang/glog"
|
log "github.com/golang/glog"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -89,8 +89,8 @@ func (e *Example) Call(ctx context.Context, req *example.Request, rsp *example.R
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/asim/go-micro/server"
|
"github.com/myodc/go-micro/server"
|
||||||
"github.com/asim/go-micro/template/handler"
|
"github.com/myodc/go-micro/template/handler"
|
||||||
log "github.com/golang/glog"
|
log "github.com/golang/glog"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -16,9 +16,9 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"code.google.com/p/go-uuid/uuid"
|
"code.google.com/p/go-uuid/uuid"
|
||||||
"github.com/asim/go-micro/errors"
|
|
||||||
"github.com/asim/go-micro/registry"
|
|
||||||
log "github.com/golang/glog"
|
log "github.com/golang/glog"
|
||||||
|
"github.com/myodc/go-micro/errors"
|
||||||
|
"github.com/myodc/go-micro/registry"
|
||||||
)
|
)
|
||||||
|
|
||||||
type HttpBroker struct {
|
type HttpBroker struct {
|
||||||
|
@ -9,8 +9,8 @@ import (
|
|||||||
"net/url"
|
"net/url"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/asim/go-micro/errors"
|
"github.com/myodc/go-micro/errors"
|
||||||
"github.com/asim/go-micro/registry"
|
"github.com/myodc/go-micro/registry"
|
||||||
rpc "github.com/youtube/vitess/go/rpcplus"
|
rpc "github.com/youtube/vitess/go/rpcplus"
|
||||||
js "github.com/youtube/vitess/go/rpcplus/jsonrpc"
|
js "github.com/youtube/vitess/go/rpcplus/jsonrpc"
|
||||||
pb "github.com/youtube/vitess/go/rpcplus/pbrpc"
|
pb "github.com/youtube/vitess/go/rpcplus/pbrpc"
|
||||||
|
@ -5,10 +5,10 @@ import (
|
|||||||
"text/tabwriter"
|
"text/tabwriter"
|
||||||
"text/template"
|
"text/template"
|
||||||
|
|
||||||
"github.com/asim/go-micro/registry"
|
|
||||||
"github.com/asim/go-micro/server"
|
|
||||||
"github.com/asim/go-micro/store"
|
|
||||||
"github.com/codegangsta/cli"
|
"github.com/codegangsta/cli"
|
||||||
|
"github.com/myodc/go-micro/registry"
|
||||||
|
"github.com/myodc/go-micro/server"
|
||||||
|
"github.com/myodc/go-micro/store"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -4,7 +4,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/asim/go-micro/broker"
|
"github.com/myodc/go-micro/broker"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -3,9 +3,9 @@ package main
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"code.google.com/p/goprotobuf/proto"
|
"github.com/golang/protobuf/proto"
|
||||||
"github.com/asim/go-micro/client"
|
"github.com/myodc/go-micro/client"
|
||||||
example "github.com/asim/go-micro/template/proto/example"
|
example "github.com/myodc/go-micro/template/proto/example"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
@ -10,8 +10,8 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/asim/go-micro/errors"
|
|
||||||
log "github.com/golang/glog"
|
log "github.com/golang/glog"
|
||||||
|
"github.com/myodc/go-micro/errors"
|
||||||
rpc "github.com/youtube/vitess/go/rpcplus"
|
rpc "github.com/youtube/vitess/go/rpcplus"
|
||||||
js "github.com/youtube/vitess/go/rpcplus/jsonrpc"
|
js "github.com/youtube/vitess/go/rpcplus/jsonrpc"
|
||||||
pb "github.com/youtube/vitess/go/rpcplus/pbrpc"
|
pb "github.com/youtube/vitess/go/rpcplus/pbrpc"
|
||||||
|
@ -8,8 +8,8 @@ import (
|
|||||||
"syscall"
|
"syscall"
|
||||||
|
|
||||||
"code.google.com/p/go-uuid/uuid"
|
"code.google.com/p/go-uuid/uuid"
|
||||||
"github.com/asim/go-micro/registry"
|
|
||||||
log "github.com/golang/glog"
|
log "github.com/golang/glog"
|
||||||
|
"github.com/myodc/go-micro/registry"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Server interface {
|
type Server interface {
|
||||||
|
@ -4,8 +4,8 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/asim/go-micro/client"
|
|
||||||
log "github.com/golang/glog"
|
log "github.com/golang/glog"
|
||||||
|
"github.com/myodc/go-micro/client"
|
||||||
)
|
)
|
||||||
|
|
||||||
var ctxs = struct {
|
var ctxs = struct {
|
||||||
|
@ -2,11 +2,11 @@ package handler
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"code.google.com/p/go.net/context"
|
"code.google.com/p/go.net/context"
|
||||||
"code.google.com/p/goprotobuf/proto"
|
"github.com/golang/protobuf/proto"
|
||||||
|
|
||||||
"github.com/asim/go-micro/server"
|
|
||||||
example "github.com/asim/go-micro/template/proto/example"
|
|
||||||
log "github.com/golang/glog"
|
log "github.com/golang/glog"
|
||||||
|
"github.com/myodc/go-micro/server"
|
||||||
|
example "github.com/myodc/go-micro/template/proto/example"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Example struct{}
|
type Example struct{}
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/asim/go-micro/cmd"
|
|
||||||
"github.com/asim/go-micro/server"
|
|
||||||
"github.com/asim/go-micro/template/handler"
|
|
||||||
log "github.com/golang/glog"
|
log "github.com/golang/glog"
|
||||||
|
"github.com/myodc/go-micro/cmd"
|
||||||
|
"github.com/myodc/go-micro/server"
|
||||||
|
"github.com/myodc/go-micro/template/handler"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
@ -1,16 +1,24 @@
|
|||||||
// Code generated by protoc-gen-go.
|
// Code generated by protoc-gen-go.
|
||||||
// source: asim/go-micro/template/proto/example/example.proto
|
// source: myodc/go-micro/template/proto/example/example.proto
|
||||||
// DO NOT EDIT!
|
// DO NOT EDIT!
|
||||||
|
|
||||||
|
/*
|
||||||
|
Package go_micro_service_template_example is a generated protocol buffer package.
|
||||||
|
|
||||||
|
It is generated from these files:
|
||||||
|
myodc/go-micro/template/proto/example/example.proto
|
||||||
|
|
||||||
|
It has these top-level messages:
|
||||||
|
Request
|
||||||
|
Response
|
||||||
|
*/
|
||||||
package go_micro_service_template_example
|
package go_micro_service_template_example
|
||||||
|
|
||||||
import proto "code.google.com/p/goprotobuf/proto"
|
import proto "github.com/golang/protobuf/proto"
|
||||||
import json "encoding/json"
|
|
||||||
import math "math"
|
import math "math"
|
||||||
|
|
||||||
// Reference proto, json, and math imports to suppress error if they are not otherwise used.
|
// Reference imports to suppress errors if they are not otherwise used.
|
||||||
var _ = proto.Marshal
|
var _ = proto.Marshal
|
||||||
var _ = &json.SyntaxError{}
|
|
||||||
var _ = math.Inf
|
var _ = math.Inf
|
||||||
|
|
||||||
type Request struct {
|
type Request struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user