1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-05-19 21:23:04 +02:00

rename imports

This commit is contained in:
Asim Aslam 2020-12-26 15:21:29 +00:00
parent c3fe6eb3ac
commit 7ab46b0850
114 changed files with 217 additions and 217 deletions

View File

@ -6,7 +6,7 @@ import (
"log" "log"
"strings" "strings"
proto "github.com/micro/examples/api/api/proto" proto "github.com/micro/go-micro/examples/api/api/proto"
"github.com/micro/go-micro/v2" "github.com/micro/go-micro/v2"
api "github.com/micro/go-micro/v2/api/proto" api "github.com/micro/go-micro/v2/api/proto"
"github.com/micro/go-micro/v2/errors" "github.com/micro/go-micro/v2/errors"

View File

@ -3,7 +3,7 @@ package main
import ( import (
"log" "log"
proto "github.com/micro/examples/api/rpc/proto" proto "github.com/micro/go-micro/examples/api/rpc/proto"
"github.com/micro/go-micro/v2" "github.com/micro/go-micro/v2"
"github.com/micro/go-micro/v2/api" "github.com/micro/go-micro/v2/api"
rapi "github.com/micro/go-micro/v2/api/handler/api" rapi "github.com/micro/go-micro/v2/api/handler/api"

View File

@ -1,11 +1,11 @@
// Code generated by protoc-gen-micro. DO NOT EDIT. // Code generated by protoc-gen-micro. DO NOT EDIT.
// source: github.com/micro/examples/api/meta/proto/api.proto // source: github.com/micro/go-micro/examples/api/meta/proto/api.proto
/* /*
Package api is a generated protocol buffer package. Package api is a generated protocol buffer package.
It is generated from these files: It is generated from these files:
github.com/micro/examples/api/meta/proto/api.proto github.com/micro/go-micro/examples/api/meta/proto/api.proto
It has these top-level messages: It has these top-level messages:
CallRequest CallRequest

View File

@ -1,11 +1,11 @@
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// source: github.com/micro/examples/api/meta/proto/api.proto // source: github.com/micro/go-micro/examples/api/meta/proto/api.proto
/* /*
Package api is a generated protocol buffer package. Package api is a generated protocol buffer package.
It is generated from these files: It is generated from these files:
github.com/micro/examples/api/meta/proto/api.proto github.com/micro/go-micro/examples/api/meta/proto/api.proto
It has these top-level messages: It has these top-level messages:
CallRequest CallRequest
@ -159,7 +159,7 @@ var _Example_serviceDesc = grpc.ServiceDesc{
}, },
}, },
Streams: []grpc.StreamDesc{}, Streams: []grpc.StreamDesc{},
Metadata: "github.com/micro/examples/api/meta/proto/api.proto", Metadata: "github.com/micro/go-micro/examples/api/meta/proto/api.proto",
} }
// Client API for Foo service // Client API for Foo service
@ -223,10 +223,10 @@ var _Foo_serviceDesc = grpc.ServiceDesc{
}, },
}, },
Streams: []grpc.StreamDesc{}, Streams: []grpc.StreamDesc{},
Metadata: "github.com/micro/examples/api/meta/proto/api.proto", Metadata: "github.com/micro/go-micro/examples/api/meta/proto/api.proto",
} }
func init() { proto.RegisterFile("github.com/micro/examples/api/meta/proto/api.proto", fileDescriptor0) } func init() { proto.RegisterFile("github.com/micro/go-micro/examples/api/meta/proto/api.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{ var fileDescriptor0 = []byte{
// 203 bytes of a gzipped FileDescriptorProto // 203 bytes of a gzipped FileDescriptorProto

View File

@ -1,11 +1,11 @@
// Code generated by protoc-gen-micro. DO NOT EDIT. // Code generated by protoc-gen-micro. DO NOT EDIT.
// source: github.com/micro/examples/api/rpc/proto/api.proto // source: github.com/micro/go-micro/examples/api/rpc/proto/api.proto
/* /*
Package api is a generated protocol buffer package. Package api is a generated protocol buffer package.
It is generated from these files: It is generated from these files:
github.com/micro/examples/api/rpc/proto/api.proto github.com/micro/go-micro/examples/api/rpc/proto/api.proto
It has these top-level messages: It has these top-level messages:
CallRequest CallRequest

View File

@ -1,11 +1,11 @@
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// source: github.com/micro/examples/api/rpc/proto/api.proto // source: github.com/micro/go-micro/examples/api/rpc/proto/api.proto
/* /*
Package api is a generated protocol buffer package. Package api is a generated protocol buffer package.
It is generated from these files: It is generated from these files:
github.com/micro/examples/api/rpc/proto/api.proto github.com/micro/go-micro/examples/api/rpc/proto/api.proto
It has these top-level messages: It has these top-level messages:
CallRequest CallRequest
@ -159,7 +159,7 @@ var _Example_serviceDesc = grpc.ServiceDesc{
}, },
}, },
Streams: []grpc.StreamDesc{}, Streams: []grpc.StreamDesc{},
Metadata: "github.com/micro/examples/api/rpc/proto/api.proto", Metadata: "github.com/micro/go-micro/examples/api/rpc/proto/api.proto",
} }
// Client API for Foo service // Client API for Foo service
@ -223,10 +223,10 @@ var _Foo_serviceDesc = grpc.ServiceDesc{
}, },
}, },
Streams: []grpc.StreamDesc{}, Streams: []grpc.StreamDesc{},
Metadata: "github.com/micro/examples/api/rpc/proto/api.proto", Metadata: "github.com/micro/go-micro/examples/api/rpc/proto/api.proto",
} }
func init() { proto.RegisterFile("github.com/micro/examples/api/rpc/proto/api.proto", fileDescriptor0) } func init() { proto.RegisterFile("github.com/micro/go-micro/examples/api/rpc/proto/api.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{ var fileDescriptor0 = []byte{
// 203 bytes of a gzipped FileDescriptorProto // 203 bytes of a gzipped FileDescriptorProto

View File

@ -3,7 +3,7 @@ package main
import ( import (
"log" "log"
proto "github.com/micro/examples/api/rpc/proto" proto "github.com/micro/go-micro/examples/api/rpc/proto"
"github.com/micro/go-micro/v2" "github.com/micro/go-micro/v2"
"github.com/micro/go-micro/v2/errors" "github.com/micro/go-micro/v2/errors"

View File

@ -29,7 +29,7 @@ Clone the repository:
Change to examples dir Change to examples dir
$ cd micro/examples/booking $ cd micro/go-micro/examples/booking
### Protobufs ### Protobufs

View File

@ -13,11 +13,11 @@ import (
"golang.org/x/net/trace" "golang.org/x/net/trace"
"github.com/google/uuid" "github.com/google/uuid"
"github.com/micro/examples/booking/api/hotel/proto" "github.com/micro/go-micro/examples/booking/api/hotel/proto"
"github.com/micro/examples/booking/srv/auth/proto" "github.com/micro/go-micro/examples/booking/srv/auth/proto"
"github.com/micro/examples/booking/srv/geo/proto" "github.com/micro/go-micro/examples/booking/srv/geo/proto"
"github.com/micro/examples/booking/srv/profile/proto" "github.com/micro/go-micro/examples/booking/srv/profile/proto"
"github.com/micro/examples/booking/srv/rate/proto" "github.com/micro/go-micro/examples/booking/srv/rate/proto"
"github.com/micro/go-micro/v2" "github.com/micro/go-micro/v2"
"github.com/micro/go-micro/v2/client" "github.com/micro/go-micro/v2/client"
merr "github.com/micro/go-micro/v2/errors" merr "github.com/micro/go-micro/v2/errors"

View File

@ -1,11 +1,11 @@
// Code generated by protoc-gen-micro. DO NOT EDIT. // Code generated by protoc-gen-micro. DO NOT EDIT.
// source: github.com/micro/examples/booking/api/hotel/proto/hotel.proto // source: github.com/micro/go-micro/examples/booking/api/hotel/proto/hotel.proto
/* /*
Package hotel is a generated protocol buffer package. Package hotel is a generated protocol buffer package.
It is generated from these files: It is generated from these files:
github.com/micro/examples/booking/api/hotel/proto/hotel.proto github.com/micro/go-micro/examples/booking/api/hotel/proto/hotel.proto
It has these top-level messages: It has these top-level messages:
Request Request
@ -16,8 +16,8 @@ package hotel
import proto "github.com/golang/protobuf/proto" import proto "github.com/golang/protobuf/proto"
import fmt "fmt" import fmt "fmt"
import math "math" import math "math"
import _ "github.com/micro/examples/booking/srv/profile/proto" import _ "github.com/micro/go-micro/examples/booking/srv/profile/proto"
import _ "github.com/micro/examples/booking/srv/rate/proto" import _ "github.com/micro/go-micro/examples/booking/srv/rate/proto"
import ( import (
context "context" context "context"

View File

@ -1,11 +1,11 @@
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// source: github.com/micro/examples/booking/api/hotel/proto/hotel.proto // source: github.com/micro/go-micro/examples/booking/api/hotel/proto/hotel.proto
/* /*
Package hotel is a generated protocol buffer package. Package hotel is a generated protocol buffer package.
It is generated from these files: It is generated from these files:
github.com/micro/examples/booking/api/hotel/proto/hotel.proto github.com/micro/go-micro/examples/booking/api/hotel/proto/hotel.proto
It has these top-level messages: It has these top-level messages:
Request Request
@ -16,8 +16,8 @@ package hotel
import proto "github.com/golang/protobuf/proto" import proto "github.com/golang/protobuf/proto"
import fmt "fmt" import fmt "fmt"
import math "math" import math "math"
import profile "github.com/micro/examples/booking/srv/profile/proto" import profile "github.com/micro/go-micro/examples/booking/srv/profile/proto"
import rate "github.com/micro/examples/booking/srv/rate/proto" import rate "github.com/micro/go-micro/examples/booking/srv/rate/proto"
import ( import (
context "golang.org/x/net/context" context "golang.org/x/net/context"
@ -157,11 +157,11 @@ var _Hotel_serviceDesc = grpc.ServiceDesc{
}, },
}, },
Streams: []grpc.StreamDesc{}, Streams: []grpc.StreamDesc{},
Metadata: "github.com/micro/examples/booking/api/hotel/proto/hotel.proto", Metadata: "github.com/micro/go-micro/examples/booking/api/hotel/proto/hotel.proto",
} }
func init() { func init() {
proto.RegisterFile("github.com/micro/examples/booking/api/hotel/proto/hotel.proto", fileDescriptor0) proto.RegisterFile("github.com/micro/go-micro/examples/booking/api/hotel/proto/hotel.proto", fileDescriptor0)
} }
var fileDescriptor0 = []byte{ var fileDescriptor0 = []byte{

View File

@ -2,8 +2,8 @@ syntax = "proto3";
package hotel; package hotel;
import "github.com/micro/examples/booking/srv/profile/proto/profile.proto"; import "github.com/micro/go-micro/examples/booking/srv/profile/proto/profile.proto";
import "github.com/micro/examples/booking/srv/rate/proto/rate.proto"; import "github.com/micro/go-micro/examples/booking/srv/rate/proto/rate.proto";
service Hotel { service Hotel {
rpc Rates(Request) returns (Response) {}; rpc Rates(Request) returns (Response) {};

View File

@ -5,8 +5,8 @@ import (
"errors" "errors"
"log" "log"
"github.com/micro/examples/booking/data" "github.com/micro/go-micro/examples/booking/data"
"github.com/micro/examples/booking/srv/auth/proto" "github.com/micro/go-micro/examples/booking/srv/auth/proto"
"context" "context"
"golang.org/x/net/trace" "golang.org/x/net/trace"

View File

@ -1,11 +1,11 @@
// Code generated by protoc-gen-micro. DO NOT EDIT. // Code generated by protoc-gen-micro. DO NOT EDIT.
// source: github.com/micro/examples/booking/srv/auth/proto/auth.proto // source: github.com/micro/go-micro/examples/booking/srv/auth/proto/auth.proto
/* /*
Package auth is a generated protocol buffer package. Package auth is a generated protocol buffer package.
It is generated from these files: It is generated from these files:
github.com/micro/examples/booking/srv/auth/proto/auth.proto github.com/micro/go-micro/examples/booking/srv/auth/proto/auth.proto
It has these top-level messages: It has these top-level messages:
Request Request

View File

@ -1,11 +1,11 @@
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// source: github.com/micro/examples/booking/srv/auth/proto/auth.proto // source: github.com/micro/go-micro/examples/booking/srv/auth/proto/auth.proto
/* /*
Package auth is a generated protocol buffer package. Package auth is a generated protocol buffer package.
It is generated from these files: It is generated from these files:
github.com/micro/examples/booking/srv/auth/proto/auth.proto github.com/micro/go-micro/examples/booking/srv/auth/proto/auth.proto
It has these top-level messages: It has these top-level messages:
Request Request
@ -165,11 +165,11 @@ var _Auth_serviceDesc = grpc.ServiceDesc{
}, },
}, },
Streams: []grpc.StreamDesc{}, Streams: []grpc.StreamDesc{},
Metadata: "github.com/micro/examples/booking/srv/auth/proto/auth.proto", Metadata: "github.com/micro/go-micro/examples/booking/srv/auth/proto/auth.proto",
} }
func init() { func init() {
proto.RegisterFile("github.com/micro/examples/booking/srv/auth/proto/auth.proto", fileDescriptor0) proto.RegisterFile("github.com/micro/go-micro/examples/booking/srv/auth/proto/auth.proto", fileDescriptor0)
} }
var fileDescriptor0 = []byte{ var fileDescriptor0 = []byte{

View File

@ -5,8 +5,8 @@ import (
"log" "log"
"github.com/hailocab/go-geoindex" "github.com/hailocab/go-geoindex"
"github.com/micro/examples/booking/data" "github.com/micro/go-micro/examples/booking/data"
"github.com/micro/examples/booking/srv/geo/proto" "github.com/micro/go-micro/examples/booking/srv/geo/proto"
"context" "context"
"golang.org/x/net/trace" "golang.org/x/net/trace"

View File

@ -1,11 +1,11 @@
// Code generated by protoc-gen-micro. DO NOT EDIT. // Code generated by protoc-gen-micro. DO NOT EDIT.
// source: github.com/micro/examples/booking/srv/geo/proto/geo.proto // source: github.com/micro/go-micro/examples/booking/srv/geo/proto/geo.proto
/* /*
Package geo is a generated protocol buffer package. Package geo is a generated protocol buffer package.
It is generated from these files: It is generated from these files:
github.com/micro/examples/booking/srv/geo/proto/geo.proto github.com/micro/go-micro/examples/booking/srv/geo/proto/geo.proto
It has these top-level messages: It has these top-level messages:
Request Request

View File

@ -1,11 +1,11 @@
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// source: github.com/micro/examples/booking/srv/geo/proto/geo.proto // source: github.com/micro/go-micro/examples/booking/srv/geo/proto/geo.proto
/* /*
Package geo is a generated protocol buffer package. Package geo is a generated protocol buffer package.
It is generated from these files: It is generated from these files:
github.com/micro/examples/booking/srv/geo/proto/geo.proto github.com/micro/go-micro/examples/booking/srv/geo/proto/geo.proto
It has these top-level messages: It has these top-level messages:
Request Request
@ -150,11 +150,11 @@ var _Geo_serviceDesc = grpc.ServiceDesc{
}, },
}, },
Streams: []grpc.StreamDesc{}, Streams: []grpc.StreamDesc{},
Metadata: "github.com/micro/examples/booking/srv/geo/proto/geo.proto", Metadata: "github.com/micro/go-micro/examples/booking/srv/geo/proto/geo.proto",
} }
func init() { func init() {
proto.RegisterFile("github.com/micro/examples/booking/srv/geo/proto/geo.proto", fileDescriptor0) proto.RegisterFile("github.com/micro/go-micro/examples/booking/srv/geo/proto/geo.proto", fileDescriptor0)
} }
var fileDescriptor0 = []byte{ var fileDescriptor0 = []byte{

View File

@ -4,8 +4,8 @@ import (
"encoding/json" "encoding/json"
"log" "log"
"github.com/micro/examples/booking/data" "github.com/micro/go-micro/examples/booking/data"
"github.com/micro/examples/booking/srv/profile/proto" "github.com/micro/go-micro/examples/booking/srv/profile/proto"
"context" "context"
"golang.org/x/net/trace" "golang.org/x/net/trace"

View File

@ -1,11 +1,11 @@
// Code generated by protoc-gen-micro. DO NOT EDIT. // Code generated by protoc-gen-micro. DO NOT EDIT.
// source: github.com/micro/examples/booking/srv/profile/proto/profile.proto // source: github.com/micro/go-micro/examples/booking/srv/profile/proto/profile.proto
/* /*
Package profile is a generated protocol buffer package. Package profile is a generated protocol buffer package.
It is generated from these files: It is generated from these files:
github.com/micro/examples/booking/srv/profile/proto/profile.proto github.com/micro/go-micro/examples/booking/srv/profile/proto/profile.proto
It has these top-level messages: It has these top-level messages:
Request Request

View File

@ -1,11 +1,11 @@
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// source: github.com/micro/examples/booking/srv/profile/proto/profile.proto // source: github.com/micro/go-micro/examples/booking/srv/profile/proto/profile.proto
/* /*
Package profile is a generated protocol buffer package. Package profile is a generated protocol buffer package.
It is generated from these files: It is generated from these files:
github.com/micro/examples/booking/srv/profile/proto/profile.proto github.com/micro/go-micro/examples/booking/srv/profile/proto/profile.proto
It has these top-level messages: It has these top-level messages:
Request Request
@ -289,11 +289,11 @@ var _Profile_serviceDesc = grpc.ServiceDesc{
}, },
}, },
Streams: []grpc.StreamDesc{}, Streams: []grpc.StreamDesc{},
Metadata: "github.com/micro/examples/booking/srv/profile/proto/profile.proto", Metadata: "github.com/micro/go-micro/examples/booking/srv/profile/proto/profile.proto",
} }
func init() { func init() {
proto.RegisterFile("github.com/micro/examples/booking/srv/profile/proto/profile.proto", fileDescriptor0) proto.RegisterFile("github.com/micro/go-micro/examples/booking/srv/profile/proto/profile.proto", fileDescriptor0)
} }
var fileDescriptor0 = []byte{ var fileDescriptor0 = []byte{

View File

@ -4,8 +4,8 @@ import (
"encoding/json" "encoding/json"
"log" "log"
"github.com/micro/examples/booking/data" "github.com/micro/go-micro/examples/booking/data"
"github.com/micro/examples/booking/srv/rate/proto" "github.com/micro/go-micro/examples/booking/srv/rate/proto"
"context" "context"
"golang.org/x/net/trace" "golang.org/x/net/trace"

View File

@ -1,11 +1,11 @@
// Code generated by protoc-gen-micro. DO NOT EDIT. // Code generated by protoc-gen-micro. DO NOT EDIT.
// source: github.com/micro/examples/booking/srv/rate/proto/rate.proto // source: github.com/micro/go-micro/examples/booking/srv/rate/proto/rate.proto
/* /*
Package rate is a generated protocol buffer package. Package rate is a generated protocol buffer package.
It is generated from these files: It is generated from these files:
github.com/micro/examples/booking/srv/rate/proto/rate.proto github.com/micro/go-micro/examples/booking/srv/rate/proto/rate.proto
It has these top-level messages: It has these top-level messages:
Request Request

View File

@ -1,11 +1,11 @@
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// source: github.com/micro/examples/booking/srv/rate/proto/rate.proto // source: github.com/micro/go-micro/examples/booking/srv/rate/proto/rate.proto
/* /*
Package rate is a generated protocol buffer package. Package rate is a generated protocol buffer package.
It is generated from these files: It is generated from these files:
github.com/micro/examples/booking/srv/rate/proto/rate.proto github.com/micro/go-micro/examples/booking/srv/rate/proto/rate.proto
It has these top-level messages: It has these top-level messages:
Request Request
@ -265,11 +265,11 @@ var _Rate_serviceDesc = grpc.ServiceDesc{
}, },
}, },
Streams: []grpc.StreamDesc{}, Streams: []grpc.StreamDesc{},
Metadata: "github.com/micro/examples/booking/srv/rate/proto/rate.proto", Metadata: "github.com/micro/go-micro/examples/booking/srv/rate/proto/rate.proto",
} }
func init() { func init() {
proto.RegisterFile("github.com/micro/examples/booking/srv/rate/proto/rate.proto", fileDescriptor0) proto.RegisterFile("github.com/micro/go-micro/examples/booking/srv/rate/proto/rate.proto", fileDescriptor0)
} }
var fileDescriptor0 = []byte{ var fileDescriptor0 = []byte{

View File

@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"context" "context"
example "github.com/micro/examples/server/proto/example" example "github.com/micro/go-micro/examples/server/proto/example"
"github.com/micro/go-micro/v2/config/cmd" "github.com/micro/go-micro/v2/config/cmd"
) )

View File

@ -12,7 +12,7 @@ import (
"github.com/micro/go-micro/v2/metadata" "github.com/micro/go-micro/v2/metadata"
"github.com/micro/go-micro/v2/registry" "github.com/micro/go-micro/v2/registry"
example "github.com/micro/examples/server/proto/example" example "github.com/micro/go-micro/examples/server/proto/example"
) )
func init() { func init() {

View File

@ -12,7 +12,7 @@ import (
"github.com/micro/go-micro/v2/config/cmd" "github.com/micro/go-micro/v2/config/cmd"
"github.com/micro/go-micro/v2/registry" "github.com/micro/go-micro/v2/registry"
example "github.com/micro/examples/server/proto/example" example "github.com/micro/go-micro/examples/server/proto/example"
) )
// Built in random hashed node selector // Built in random hashed node selector

View File

@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"context" "context"
example "github.com/micro/examples/server/proto/example" example "github.com/micro/go-micro/examples/server/proto/example"
"github.com/micro/go-micro/v2" "github.com/micro/go-micro/v2"
"github.com/micro/go-micro/v2/client" "github.com/micro/go-micro/v2/client"
"github.com/micro/go-micro/v2/metadata" "github.com/micro/go-micro/v2/metadata"

View File

@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"context" "context"
example "github.com/micro/examples/server/proto/example" example "github.com/micro/go-micro/examples/server/proto/example"
"github.com/micro/go-micro/v2" "github.com/micro/go-micro/v2"
) )

View File

@ -6,7 +6,7 @@ import (
"math/rand" "math/rand"
"time" "time"
example "github.com/micro/examples/server/proto/example" example "github.com/micro/go-micro/examples/server/proto/example"
"github.com/micro/go-micro/v2/client" "github.com/micro/go-micro/v2/client"
"github.com/micro/go-micro/v2/client/selector" "github.com/micro/go-micro/v2/client/selector"
"github.com/micro/go-micro/v2/config/cmd" "github.com/micro/go-micro/v2/config/cmd"

View File

@ -5,7 +5,7 @@ import (
"time" "time"
"context" "context"
example "github.com/micro/examples/server/proto/example" example "github.com/micro/go-micro/examples/server/proto/example"
"github.com/micro/go-micro/v2/client" "github.com/micro/go-micro/v2/client"
"github.com/micro/go-micro/v2/config/cmd" "github.com/micro/go-micro/v2/config/cmd"
"github.com/micro/go-micro/v2/metadata" "github.com/micro/go-micro/v2/metadata"

View File

@ -1,11 +1,11 @@
// Code generated by protoc-gen-micro. DO NOT EDIT. // Code generated by protoc-gen-micro. DO NOT EDIT.
// source: github.com/micro/examples/event/srv/proto/pubsub.proto // source: github.com/micro/go-micro/examples/event/srv/proto/pubsub.proto
/* /*
Package pubsub is a generated protocol buffer package. Package pubsub is a generated protocol buffer package.
It is generated from these files: It is generated from these files:
github.com/micro/examples/event/srv/proto/pubsub.proto github.com/micro/go-micro/examples/event/srv/proto/pubsub.proto
It has these top-level messages: It has these top-level messages:
Event Event

View File

@ -1,11 +1,11 @@
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// source: github.com/micro/examples/event/srv/proto/pubsub.proto // source: github.com/micro/go-micro/examples/event/srv/proto/pubsub.proto
/* /*
Package pubsub is a generated protocol buffer package. Package pubsub is a generated protocol buffer package.
It is generated from these files: It is generated from these files:
github.com/micro/examples/event/srv/proto/pubsub.proto github.com/micro/go-micro/examples/event/srv/proto/pubsub.proto
It has these top-level messages: It has these top-level messages:
Event Event
@ -68,7 +68,7 @@ func init() {
} }
func init() { func init() {
proto.RegisterFile("github.com/micro/examples/event/srv/proto/pubsub.proto", fileDescriptor0) proto.RegisterFile("github.com/micro/go-micro/examples/event/srv/proto/pubsub.proto", fileDescriptor0)
} }
var fileDescriptor0 = []byte{ var fileDescriptor0 = []byte{

View File

@ -4,8 +4,8 @@ import (
"context" "context"
"fmt" "fmt"
"github.com/micro/examples/filter/version" "github.com/micro/go-micro/examples/filter/version"
proto "github.com/micro/examples/service/proto" proto "github.com/micro/go-micro/examples/service/proto"
"github.com/micro/go-micro/v2" "github.com/micro/go-micro/v2"
) )

View File

@ -8,7 +8,7 @@ import (
"mime/multipart" "mime/multipart"
"strings" "strings"
proto "github.com/micro/examples/form/api/proto" proto "github.com/micro/go-micro/examples/form/api/proto"
"github.com/micro/go-micro/v2" "github.com/micro/go-micro/v2"
api "github.com/micro/go-micro/v2/api/proto" api "github.com/micro/go-micro/v2/api/proto"
"github.com/micro/go-micro/v2/util/log" "github.com/micro/go-micro/v2/util/log"

View File

@ -11,7 +11,7 @@ This is an example of creating a micro function. A function is a one time execut
```shell ```shell
while true; do while true; do
github.com/micro/examples/function github.com/micro/go-micro/examples/function
done done
``` ```

View File

@ -3,7 +3,7 @@ package main
import ( import (
"context" "context"
proto "github.com/micro/examples/function/proto" proto "github.com/micro/go-micro/examples/function/proto"
"github.com/micro/go-micro/v2" "github.com/micro/go-micro/v2"
) )

View File

@ -1,11 +1,11 @@
// Code generated by protoc-gen-micro. DO NOT EDIT. // Code generated by protoc-gen-micro. DO NOT EDIT.
// source: github.com/micro/examples/function/proto/greeter.proto // source: github.com/micro/go-micro/examples/function/proto/greeter.proto
/* /*
Package greeter is a generated protocol buffer package. Package greeter is a generated protocol buffer package.
It is generated from these files: It is generated from these files:
github.com/micro/examples/function/proto/greeter.proto github.com/micro/go-micro/examples/function/proto/greeter.proto
It has these top-level messages: It has these top-level messages:
HelloRequest HelloRequest

View File

@ -1,11 +1,11 @@
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// source: github.com/micro/examples/function/proto/greeter.proto // source: github.com/micro/go-micro/examples/function/proto/greeter.proto
/* /*
Package greeter is a generated protocol buffer package. Package greeter is a generated protocol buffer package.
It is generated from these files: It is generated from these files:
github.com/micro/examples/function/proto/greeter.proto github.com/micro/go-micro/examples/function/proto/greeter.proto
It has these top-level messages: It has these top-level messages:
HelloRequest HelloRequest
@ -139,11 +139,11 @@ var _Greeter_serviceDesc = grpc.ServiceDesc{
}, },
}, },
Streams: []grpc.StreamDesc{}, Streams: []grpc.StreamDesc{},
Metadata: "github.com/micro/examples/function/proto/greeter.proto", Metadata: "github.com/micro/go-micro/examples/function/proto/greeter.proto",
} }
func init() { func init() {
proto.RegisterFile("github.com/micro/examples/function/proto/greeter.proto", fileDescriptor0) proto.RegisterFile("github.com/micro/go-micro/examples/function/proto/greeter.proto", fileDescriptor0)
} }
var fileDescriptor0 = []byte{ var fileDescriptor0 = []byte{

View File

@ -9,7 +9,7 @@ import (
"github.com/grpc-ecosystem/grpc-gateway/runtime" "github.com/grpc-ecosystem/grpc-gateway/runtime"
"google.golang.org/grpc" "google.golang.org/grpc"
hello "github.com/micro/examples/gateway/proto/hello" hello "github.com/micro/go-micro/examples/gateway/proto/hello"
) )
var ( var (

View File

@ -4,7 +4,7 @@ import (
"context" "context"
"fmt" "fmt"
proto "github.com/micro/examples/service/proto" proto "github.com/micro/go-micro/examples/service/proto"
"github.com/micro/go-micro/v2" "github.com/micro/go-micro/v2"
"github.com/micro/go-micro/v2/metadata" "github.com/micro/go-micro/v2/metadata"
) )

View File

@ -1,11 +1,11 @@
// Code generated by protoc-gen-micro. DO NOT EDIT. // Code generated by protoc-gen-micro. DO NOT EDIT.
// source: github.com/micro/examples/service/proto/greeter.proto // source: github.com/micro/go-micro/examples/service/proto/greeter.proto
/* /*
Package greeter is a generated protocol buffer package. Package greeter is a generated protocol buffer package.
It is generated from these files: It is generated from these files:
github.com/micro/examples/service/proto/greeter.proto github.com/micro/go-micro/examples/service/proto/greeter.proto
It has these top-level messages: It has these top-level messages:
HelloRequest HelloRequest

View File

@ -1,11 +1,11 @@
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// source: github.com/micro/examples/service/proto/greeter.proto // source: github.com/micro/go-micro/examples/service/proto/greeter.proto
/* /*
Package greeter is a generated protocol buffer package. Package greeter is a generated protocol buffer package.
It is generated from these files: It is generated from these files:
github.com/micro/examples/service/proto/greeter.proto github.com/micro/go-micro/examples/service/proto/greeter.proto
It has these top-level messages: It has these top-level messages:
HelloRequest HelloRequest
@ -139,11 +139,11 @@ var _Greeter_serviceDesc = grpc.ServiceDesc{
}, },
}, },
Streams: []grpc.StreamDesc{}, Streams: []grpc.StreamDesc{},
Metadata: "github.com/micro/examples/service/proto/greeter.proto", Metadata: "github.com/micro/go-micro/examples/service/proto/greeter.proto",
} }
func init() { func init() {
proto.RegisterFile("github.com/micro/examples/service/proto/greeter.proto", fileDescriptor0) proto.RegisterFile("github.com/micro/go-micro/examples/service/proto/greeter.proto", fileDescriptor0)
} }
var fileDescriptor0 = []byte{ var fileDescriptor0 = []byte{

View File

@ -1,4 +1,4 @@
module github.com/micro/examples module github.com/micro/go-micro/examples
go 1.13 go 1.13

View File

@ -5,7 +5,7 @@ import (
"log" "log"
"strings" "strings"
hello "github.com/micro/examples/greeter/srv/proto/hello" hello "github.com/micro/go-micro/examples/greeter/srv/proto/hello"
"github.com/micro/go-micro/v2" "github.com/micro/go-micro/v2"
api "github.com/micro/go-micro/v2/api/proto" api "github.com/micro/go-micro/v2/api/proto"
"github.com/micro/go-micro/v2/errors" "github.com/micro/go-micro/v2/errors"

View File

@ -7,7 +7,7 @@ import (
"github.com/astaxie/beego" "github.com/astaxie/beego"
bctx "github.com/astaxie/beego/context" bctx "github.com/astaxie/beego/context"
hello "github.com/micro/examples/greeter/srv/proto/hello" hello "github.com/micro/go-micro/examples/greeter/srv/proto/hello"
"github.com/micro/go-micro/v2/client" "github.com/micro/go-micro/v2/client"
"github.com/micro/go-micro/v2/web" "github.com/micro/go-micro/v2/web"
) )

View File

@ -5,7 +5,7 @@ import (
"log" "log"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
hello "github.com/micro/examples/greeter/srv/proto/hello" hello "github.com/micro/go-micro/examples/greeter/srv/proto/hello"
"github.com/micro/go-micro/v2/client" "github.com/micro/go-micro/v2/client"
"github.com/micro/go-micro/v2/web" "github.com/micro/go-micro/v2/web"
) )

View File

@ -11,7 +11,7 @@ import (
"github.com/99designs/gqlgen/graphql" "github.com/99designs/gqlgen/graphql"
"github.com/99designs/gqlgen/graphql/introspection" "github.com/99designs/gqlgen/graphql/introspection"
"github.com/micro/examples/greeter/srv/proto/hello" "github.com/micro/go-micro/examples/greeter/srv/proto/hello"
"github.com/vektah/gqlparser" "github.com/vektah/gqlparser"
"github.com/vektah/gqlparser/ast" "github.com/vektah/gqlparser/ast"
) )

View File

@ -14,4 +14,4 @@ resolver:
models: models:
HelloResponse: HelloResponse:
model: github.com/micro/examples/greeter/srv/proto/hello.Response model: github.com/micro/go-micro/examples/greeter/srv/proto/hello.Response

View File

@ -5,7 +5,7 @@ package graphql
import ( import (
context "context" context "context"
proto "github.com/micro/examples/greeter/srv/proto/hello" proto "github.com/micro/go-micro/examples/greeter/srv/proto/hello"
) )
type Resolver struct { type Resolver struct {

View File

@ -2,8 +2,8 @@ package main
import ( import (
"github.com/99designs/gqlgen/handler" "github.com/99designs/gqlgen/handler"
gql "github.com/micro/examples/greeter/api/graphql/graphql" gql "github.com/micro/go-micro/examples/greeter/api/graphql/graphql"
helloProto "github.com/micro/examples/greeter/srv/proto/hello" helloProto "github.com/micro/go-micro/examples/greeter/srv/proto/hello"
"github.com/micro/go-micro/v2/client" "github.com/micro/go-micro/v2/client"
"github.com/micro/go-micro/v2/util/log" "github.com/micro/go-micro/v2/util/log"
"github.com/micro/go-micro/v2/web" "github.com/micro/go-micro/v2/web"

View File

@ -6,7 +6,7 @@ import (
"github.com/emicklei/go-restful" "github.com/emicklei/go-restful"
hello "github.com/micro/examples/greeter/srv/proto/hello" hello "github.com/micro/go-micro/examples/greeter/srv/proto/hello"
"github.com/micro/go-micro/v2/client" "github.com/micro/go-micro/v2/client"
"github.com/micro/go-micro/v2/web" "github.com/micro/go-micro/v2/web"
) )

View File

@ -1,11 +1,11 @@
// Code generated by protoc-gen-micro. DO NOT EDIT. // Code generated by protoc-gen-micro. DO NOT EDIT.
// source: github.com/micro/examples/greeter/api/rpc/proto/hello/hello.proto // source: github.com/micro/go-micro/examples/greeter/api/rpc/proto/hello/hello.proto
/* /*
Package go_micro_api_greeter is a generated protocol buffer package. Package go_micro_api_greeter is a generated protocol buffer package.
It is generated from these files: It is generated from these files:
github.com/micro/examples/greeter/api/rpc/proto/hello/hello.proto github.com/micro/go-micro/examples/greeter/api/rpc/proto/hello/hello.proto
It has these top-level messages: It has these top-level messages:
Request Request

View File

@ -1,11 +1,11 @@
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// source: github.com/micro/examples/greeter/api/rpc/proto/hello/hello.proto // source: github.com/micro/go-micro/examples/greeter/api/rpc/proto/hello/hello.proto
/* /*
Package go_micro_api_greeter is a generated protocol buffer package. Package go_micro_api_greeter is a generated protocol buffer package.
It is generated from these files: It is generated from these files:
github.com/micro/examples/greeter/api/rpc/proto/hello/hello.proto github.com/micro/go-micro/examples/greeter/api/rpc/proto/hello/hello.proto
It has these top-level messages: It has these top-level messages:
Request Request
@ -139,11 +139,11 @@ var _Greeter_serviceDesc = grpc.ServiceDesc{
}, },
}, },
Streams: []grpc.StreamDesc{}, Streams: []grpc.StreamDesc{},
Metadata: "github.com/micro/examples/greeter/api/rpc/proto/hello/hello.proto", Metadata: "github.com/micro/go-micro/examples/greeter/api/rpc/proto/hello/hello.proto",
} }
func init() { func init() {
proto.RegisterFile("github.com/micro/examples/greeter/api/rpc/proto/hello/hello.proto", fileDescriptor0) proto.RegisterFile("github.com/micro/go-micro/examples/greeter/api/rpc/proto/hello/hello.proto", fileDescriptor0)
} }
var fileDescriptor0 = []byte{ var fileDescriptor0 = []byte{

View File

@ -3,8 +3,8 @@ package main
import ( import (
"log" "log"
proto "github.com/micro/examples/greeter/api/rpc/proto/hello" proto "github.com/micro/go-micro/examples/greeter/api/rpc/proto/hello"
hello "github.com/micro/examples/greeter/srv/proto/hello" hello "github.com/micro/go-micro/examples/greeter/srv/proto/hello"
"github.com/micro/go-micro/v2" "github.com/micro/go-micro/v2"
"context" "context"

View File

@ -4,7 +4,7 @@ import (
"context" "context"
"fmt" "fmt"
hello "github.com/micro/examples/greeter/srv/proto/hello" hello "github.com/micro/go-micro/examples/greeter/srv/proto/hello"
"github.com/micro/go-micro/v2" "github.com/micro/go-micro/v2"
) )

View File

@ -7,7 +7,7 @@ import (
"net/http" "net/http"
"github.com/golang/protobuf/proto" "github.com/golang/protobuf/proto"
hello "github.com/micro/examples/greeter/srv/proto/hello" hello "github.com/micro/go-micro/examples/greeter/srv/proto/hello"
) )
func main() { func main() {

View File

@ -5,7 +5,7 @@ import (
"context" "context"
"time" "time"
hello "github.com/micro/examples/greeter/srv/proto/hello" hello "github.com/micro/go-micro/examples/greeter/srv/proto/hello"
"github.com/micro/go-micro/v2" "github.com/micro/go-micro/v2"
"github.com/micro/go-micro/v2/util/log" "github.com/micro/go-micro/v2/util/log"
"google.golang.org/grpc" "google.golang.org/grpc"

View File

@ -1,5 +1,5 @@
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// source: micro/examples/greeter/srv/proto/hello/hello.proto // source: micro/go-micro/examples/greeter/srv/proto/hello/hello.proto
package go_micro_srv_greeter package go_micro_srv_greeter
@ -104,7 +104,7 @@ func init() {
} }
func init() { func init() {
proto.RegisterFile("micro/examples/greeter/srv/proto/hello/hello.proto", fileDescriptor_f9c4d46e1c0507ba) proto.RegisterFile("micro/go-micro/examples/greeter/srv/proto/hello/hello.proto", fileDescriptor_f9c4d46e1c0507ba)
} }
var fileDescriptor_f9c4d46e1c0507ba = []byte{ var fileDescriptor_f9c4d46e1c0507ba = []byte{

View File

@ -1,5 +1,5 @@
// Code generated by protoc-gen-micro. DO NOT EDIT. // Code generated by protoc-gen-micro. DO NOT EDIT.
// source: micro/examples/greeter/srv/proto/hello/hello.proto // source: micro/go-micro/examples/greeter/srv/proto/hello/hello.proto
package go_micro_srv_greeter package go_micro_srv_greeter

View File

@ -5,7 +5,7 @@ import (
"log" "log"
"net/http" "net/http"
hello "github.com/micro/examples/greeter/srv/proto/hello" hello "github.com/micro/go-micro/examples/greeter/srv/proto/hello"
"github.com/micro/go-micro/v2/client" "github.com/micro/go-micro/v2/client"
"github.com/micro/go-micro/v2/web" "github.com/micro/go-micro/v2/web"

View File

@ -4,7 +4,7 @@ import (
"context" "context"
"log" "log"
pb "github.com/micro/examples/helloworld/proto" pb "github.com/micro/go-micro/examples/helloworld/proto"
"github.com/micro/go-micro/v2" "github.com/micro/go-micro/v2"
) )

View File

@ -1,5 +1,5 @@
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// source: github.com/micro/examples/helloworld/proto/greeter.proto // source: github.com/micro/go-micro/examples/helloworld/proto/greeter.proto
package greeter package greeter
@ -104,7 +104,7 @@ func init() {
} }
func init() { func init() {
proto.RegisterFile("github.com/micro/examples/helloworld/proto/greeter.proto", fileDescriptor_f59dc6c921369088) proto.RegisterFile("github.com/micro/go-micro/examples/helloworld/proto/greeter.proto", fileDescriptor_f59dc6c921369088)
} }
var fileDescriptor_f59dc6c921369088 = []byte{ var fileDescriptor_f59dc6c921369088 = []byte{

View File

@ -1,5 +1,5 @@
// Code generated by protoc-gen-micro. DO NOT EDIT. // Code generated by protoc-gen-micro. DO NOT EDIT.
// source: github.com/micro/examples/helloworld/proto/greeter.proto // source: github.com/micro/go-micro/examples/helloworld/proto/greeter.proto
package greeter package greeter

View File

@ -33,7 +33,7 @@ provides a kubernetes native runtime to help build micro services.
``` ```
go get github.com/micro/examples/kubernetes/cmd/micro go get github.com/micro/go-micro/examples/kubernetes/cmd/micro
``` ```
or or
@ -45,7 +45,7 @@ docker pull microhq/micro:kubernetes
For go-micro For go-micro
``` ```
import "github.com/micro/examples/kubernetes/go/micro" import "github.com/micro/go-micro/examples/kubernetes/go/micro"
``` ```
## Writing a Service ## Writing a Service
@ -55,7 +55,7 @@ Write a service as you would any other [go-micro](https://github.com/micro/go-mi
```go ```go
import ( import (
"github.com/micro/go-micro/v2" "github.com/micro/go-micro/v2"
k8s "github.com/micro/examples/kubernetes/go/micro" k8s "github.com/micro/go-micro/examples/kubernetes/go/micro"
) )
func main() { func main() {
@ -138,7 +138,7 @@ import (
"net/http" "net/http"
"github.com/micro/go-micro/v2/web" "github.com/micro/go-micro/v2/web"
k8s "github.com/micro/examples/kubernetes/go/web" k8s "github.com/micro/go-micro/examples/kubernetes/go/web"
) )
func main() { func main() {
@ -163,7 +163,7 @@ Every go-micro service has a built in Debug.Health endpoint.
### Install ### Install
``` ```
go get github.com/micro/examples/kubernetes/cmd/health go get github.com/micro/go-micro/examples/kubernetes/cmd/health
``` ```
or or
@ -368,7 +368,7 @@ $ kubectl get configmap micro --namespace default
Import and use the config Import and use the config
```go ```go
import "github.com/micro/examples/kubernetes/go/config" import "github.com/micro/go-micro/examples/kubernetes/go/config"
cfg := config.NewConfig() cfg := config.NewConfig()

View File

@ -4,8 +4,8 @@ import (
"context" "context"
"log" "log"
hello "github.com/micro/examples/greeter/srv/proto/hello" hello "github.com/micro/go-micro/examples/greeter/srv/proto/hello"
k8s "github.com/micro/examples/kubernetes/go/micro" k8s "github.com/micro/go-micro/examples/kubernetes/go/micro"
"github.com/micro/go-micro/v2" "github.com/micro/go-micro/v2"
) )

View File

@ -3,7 +3,7 @@ package main
import ( import (
"fmt" "fmt"
hello "github.com/micro/examples/greeter/srv/proto/hello" hello "github.com/micro/go-micro/examples/greeter/srv/proto/hello"
"github.com/micro/go-micro/v2" "github.com/micro/go-micro/v2"
"github.com/micro/go-micro/v2/metadata" "github.com/micro/go-micro/v2/metadata"

View File

@ -5,7 +5,7 @@ import (
"log" "log"
"time" "time"
hello "github.com/micro/examples/greeter/srv/proto/hello" hello "github.com/micro/go-micro/examples/greeter/srv/proto/hello"
"github.com/micro/go-micro/v2" "github.com/micro/go-micro/v2"
"github.com/micro/go-micro/v2/metadata" "github.com/micro/go-micro/v2/metadata"

View File

@ -5,8 +5,8 @@ import (
"fmt" "fmt"
"github.com/micro/cli/v2" "github.com/micro/cli/v2"
proto "github.com/micro/examples/helloworld/proto" proto "github.com/micro/go-micro/examples/helloworld/proto"
"github.com/micro/examples/mocking/mock" "github.com/micro/go-micro/examples/mocking/mock"
"github.com/micro/go-micro/v2" "github.com/micro/go-micro/v2"
) )

View File

@ -3,7 +3,7 @@ package mock
import ( import (
"context" "context"
proto "github.com/micro/examples/helloworld/proto" proto "github.com/micro/go-micro/examples/helloworld/proto"
"github.com/micro/go-micro/v2/client" "github.com/micro/go-micro/v2/client"
) )

View File

@ -11,7 +11,7 @@ package main
import ( import (
"github.com/micro/micro/plugin" "github.com/micro/micro/plugin"
"github.com/micro/examples/plugins/prefix" "github.com/micro/go-micro/examples/plugins/prefix"
) )
func init() { func init() {
@ -35,7 +35,7 @@ package main
import ( import (
"github.com/micro/micro/api" "github.com/micro/micro/api"
"github.com/micro/examples/plugins/prefix" "github.com/micro/go-micro/examples/plugins/prefix"
) )
func init() { func init() {

View File

@ -5,7 +5,7 @@ import (
"time" "time"
"context" "context"
proto "github.com/micro/examples/pubsub/srv/proto" proto "github.com/micro/go-micro/examples/pubsub/srv/proto"
"github.com/micro/go-micro/v2" "github.com/micro/go-micro/v2"
"github.com/micro/go-micro/v2/util/log" "github.com/micro/go-micro/v2/util/log"
"github.com/pborman/uuid" "github.com/pborman/uuid"

View File

@ -1,7 +1,7 @@
package main package main
import ( import (
proto "github.com/micro/examples/pubsub/srv/proto" proto "github.com/micro/go-micro/examples/pubsub/srv/proto"
"github.com/micro/go-micro/v2" "github.com/micro/go-micro/v2"
"github.com/micro/go-micro/v2/metadata" "github.com/micro/go-micro/v2/metadata"
"github.com/micro/go-micro/v2/server" "github.com/micro/go-micro/v2/server"

View File

@ -1,11 +1,11 @@
// Code generated by protoc-gen-micro. DO NOT EDIT. // Code generated by protoc-gen-micro. DO NOT EDIT.
// source: github.com/micro/examples/pubsub/srv/proto/pubsub.proto // source: github.com/micro/go-micro/examples/pubsub/srv/proto/pubsub.proto
/* /*
Package pubsub is a generated protocol buffer package. Package pubsub is a generated protocol buffer package.
It is generated from these files: It is generated from these files:
github.com/micro/examples/pubsub/srv/proto/pubsub.proto github.com/micro/go-micro/examples/pubsub/srv/proto/pubsub.proto
It has these top-level messages: It has these top-level messages:
Event Event

View File

@ -1,11 +1,11 @@
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// source: github.com/micro/examples/pubsub/srv/proto/pubsub.proto // source: github.com/micro/go-micro/examples/pubsub/srv/proto/pubsub.proto
/* /*
Package pubsub is a generated protocol buffer package. Package pubsub is a generated protocol buffer package.
It is generated from these files: It is generated from these files:
github.com/micro/examples/pubsub/srv/proto/pubsub.proto github.com/micro/go-micro/examples/pubsub/srv/proto/pubsub.proto
It has these top-level messages: It has these top-level messages:
Event Event
@ -68,7 +68,7 @@ func init() {
} }
func init() { func init() {
proto.RegisterFile("github.com/micro/examples/pubsub/srv/proto/pubsub.proto", fileDescriptor0) proto.RegisterFile("github.com/micro/go-micro/examples/pubsub/srv/proto/pubsub.proto", fileDescriptor0)
} }
var fileDescriptor0 = []byte{ var fileDescriptor0 = []byte{

View File

@ -5,7 +5,7 @@ import (
"log" "log"
"strings" "strings"
hello "github.com/micro/examples/greeter/srv/proto/hello" hello "github.com/micro/go-micro/examples/greeter/srv/proto/hello"
"github.com/micro/go-micro/v2" "github.com/micro/go-micro/v2"
"github.com/micro/go-micro/v2/errors" "github.com/micro/go-micro/v2/errors"
roundrobin "github.com/micro/go-plugins/wrapper/select/roundrobin/v2" roundrobin "github.com/micro/go-plugins/wrapper/select/roundrobin/v2"

View File

@ -6,7 +6,7 @@ import (
"github.com/micro/go-micro/v2/client" "github.com/micro/go-micro/v2/client"
"github.com/micro/go-micro/v2/transport" "github.com/micro/go-micro/v2/transport"
hello "github.com/micro/examples/greeter/srv/proto/hello" hello "github.com/micro/go-micro/examples/greeter/srv/proto/hello"
"context" "context"
) )

View File

@ -5,7 +5,7 @@ import (
"time" "time"
"context" "context"
hello "github.com/micro/examples/greeter/srv/proto/hello" hello "github.com/micro/go-micro/examples/greeter/srv/proto/hello"
"github.com/micro/go-micro/v2" "github.com/micro/go-micro/v2"
"github.com/micro/go-micro/v2/transport" "github.com/micro/go-micro/v2/transport"
) )

View File

@ -1,11 +1,11 @@
// Code generated by protoc-gen-micro. DO NOT EDIT. // Code generated by protoc-gen-micro. DO NOT EDIT.
// source: github.com/micro/examples/secure/srv/proto/hello/hello.proto // source: github.com/micro/go-micro/examples/secure/srv/proto/hello/hello.proto
/* /*
Package go_micro_srv_greeter is a generated protocol buffer package. Package go_micro_srv_greeter is a generated protocol buffer package.
It is generated from these files: It is generated from these files:
github.com/micro/examples/secure/srv/proto/hello/hello.proto github.com/micro/go-micro/examples/secure/srv/proto/hello/hello.proto
It has these top-level messages: It has these top-level messages:
Request Request

View File

@ -1,11 +1,11 @@
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// source: github.com/micro/examples/secure/srv/proto/hello/hello.proto // source: github.com/micro/go-micro/examples/secure/srv/proto/hello/hello.proto
/* /*
Package go_micro_srv_greeter is a generated protocol buffer package. Package go_micro_srv_greeter is a generated protocol buffer package.
It is generated from these files: It is generated from these files:
github.com/micro/examples/secure/srv/proto/hello/hello.proto github.com/micro/go-micro/examples/secure/srv/proto/hello/hello.proto
It has these top-level messages: It has these top-level messages:
Request Request
@ -139,11 +139,11 @@ var _Say_serviceDesc = grpc.ServiceDesc{
}, },
}, },
Streams: []grpc.StreamDesc{}, Streams: []grpc.StreamDesc{},
Metadata: "github.com/micro/examples/secure/srv/proto/hello/hello.proto", Metadata: "github.com/micro/go-micro/examples/secure/srv/proto/hello/hello.proto",
} }
func init() { func init() {
proto.RegisterFile("github.com/micro/examples/secure/srv/proto/hello/hello.proto", fileDescriptor0) proto.RegisterFile("github.com/micro/go-micro/examples/secure/srv/proto/hello/hello.proto", fileDescriptor0)
} }
var fileDescriptor0 = []byte{ var fileDescriptor0 = []byte{

View File

@ -4,11 +4,11 @@ import (
"log" "log"
"context" "context"
"github.com/micro/examples/server/subscriber" "github.com/micro/go-micro/examples/server/subscriber"
"github.com/micro/go-micro/v2/config/cmd" "github.com/micro/go-micro/v2/config/cmd"
"github.com/micro/go-micro/v2/server" "github.com/micro/go-micro/v2/server"
example "github.com/micro/examples/server/proto/example" example "github.com/micro/go-micro/examples/server/proto/example"
) )
type Example struct{} type Example struct{}

View File

@ -3,7 +3,7 @@ package handler
import ( import (
"log" "log"
example "github.com/micro/examples/server/proto/example" example "github.com/micro/go-micro/examples/server/proto/example"
"github.com/micro/go-micro/v2/metadata" "github.com/micro/go-micro/v2/metadata"
"github.com/micro/go-micro/v2/server" "github.com/micro/go-micro/v2/server"

View File

@ -3,8 +3,8 @@ package main
import ( import (
"log" "log"
"github.com/micro/examples/server/handler" "github.com/micro/go-micro/examples/server/handler"
"github.com/micro/examples/server/subscriber" "github.com/micro/go-micro/examples/server/subscriber"
"github.com/micro/go-micro/v2/config/cmd" "github.com/micro/go-micro/v2/config/cmd"
"github.com/micro/go-micro/v2/server" "github.com/micro/go-micro/v2/server"
) )

View File

@ -1,11 +1,11 @@
// Code generated by protoc-gen-micro. DO NOT EDIT. // Code generated by protoc-gen-micro. DO NOT EDIT.
// source: github.com/micro/examples/server/proto/example/example.proto // source: github.com/micro/go-micro/examples/server/proto/example/example.proto
/* /*
Package go_micro_srv_example is a generated protocol buffer package. Package go_micro_srv_example is a generated protocol buffer package.
It is generated from these files: It is generated from these files:
github.com/micro/examples/server/proto/example/example.proto github.com/micro/go-micro/examples/server/proto/example/example.proto
It has these top-level messages: It has these top-level messages:
Message Message

View File

@ -1,11 +1,11 @@
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// source: github.com/micro/examples/server/proto/example/example.proto // source: github.com/micro/go-micro/examples/server/proto/example/example.proto
/* /*
Package go_micro_srv_example is a generated protocol buffer package. Package go_micro_srv_example is a generated protocol buffer package.
It is generated from these files: It is generated from these files:
github.com/micro/examples/server/proto/example/example.proto github.com/micro/go-micro/examples/server/proto/example/example.proto
It has these top-level messages: It has these top-level messages:
Message Message
@ -355,11 +355,11 @@ var _Example_serviceDesc = grpc.ServiceDesc{
ClientStreams: true, ClientStreams: true,
}, },
}, },
Metadata: "github.com/micro/examples/server/proto/example/example.proto", Metadata: "github.com/micro/go-micro/examples/server/proto/example/example.proto",
} }
func init() { func init() {
proto.RegisterFile("github.com/micro/examples/server/proto/example/example.proto", fileDescriptor0) proto.RegisterFile("github.com/micro/go-micro/examples/server/proto/example/example.proto", fileDescriptor0)
} }
var fileDescriptor0 = []byte{ var fileDescriptor0 = []byte{

View File

@ -4,7 +4,7 @@ import (
"log" "log"
"context" "context"
example "github.com/micro/examples/server/proto/example" example "github.com/micro/go-micro/examples/server/proto/example"
) )
type Example struct{} type Example struct{}

View File

@ -4,8 +4,8 @@ import (
"log" "log"
"context" "context"
"github.com/micro/examples/server/handler" "github.com/micro/go-micro/examples/server/handler"
"github.com/micro/examples/server/subscriber" "github.com/micro/go-micro/examples/server/subscriber"
"github.com/micro/go-micro/v2/config/cmd" "github.com/micro/go-micro/v2/config/cmd"
"github.com/micro/go-micro/v2/server" "github.com/micro/go-micro/v2/server"
) )

View File

@ -6,7 +6,7 @@ import (
"context" "context"
"github.com/micro/cli/v2" "github.com/micro/cli/v2"
proto "github.com/micro/examples/service/proto" proto "github.com/micro/go-micro/examples/service/proto"
"github.com/micro/go-micro/v2" "github.com/micro/go-micro/v2"
) )

View File

@ -1,5 +1,5 @@
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// source: github.com/micro/examples/service/proto/greeter.proto // source: github.com/micro/go-micro/examples/service/proto/greeter.proto
package greeter package greeter
@ -104,7 +104,7 @@ func init() {
} }
func init() { func init() {
proto.RegisterFile("github.com/micro/examples/service/proto/greeter.proto", fileDescriptor_f752d72c38fc9ff3) proto.RegisterFile("github.com/micro/go-micro/examples/service/proto/greeter.proto", fileDescriptor_f752d72c38fc9ff3)
} }
var fileDescriptor_f752d72c38fc9ff3 = []byte{ var fileDescriptor_f752d72c38fc9ff3 = []byte{

View File

@ -1,5 +1,5 @@
// Code generated by protoc-gen-micro. DO NOT EDIT. // Code generated by protoc-gen-micro. DO NOT EDIT.
// source: github.com/micro/examples/service/proto/greeter.proto // source: github.com/micro/go-micro/examples/service/proto/greeter.proto
package greeter package greeter

View File

@ -5,7 +5,7 @@ import (
"log" "log"
"strings" "strings"
hello "github.com/micro/examples/greeter/srv/proto/hello" hello "github.com/micro/go-micro/examples/greeter/srv/proto/hello"
"github.com/micro/go-micro/v2" "github.com/micro/go-micro/v2"
"github.com/micro/go-micro/v2/errors" "github.com/micro/go-micro/v2/errors"
shard "github.com/micro/go-plugins/wrapper/select/shard/v2" shard "github.com/micro/go-plugins/wrapper/select/shard/v2"

View File

@ -5,7 +5,7 @@ import (
"time" "time"
"context" "context"
proto "github.com/micro/examples/stream/server/proto" proto "github.com/micro/go-micro/examples/stream/server/proto"
"github.com/micro/go-micro/v2" "github.com/micro/go-micro/v2"
) )

View File

@ -6,7 +6,7 @@ import (
"io" "io"
"log" "log"
proto "github.com/micro/examples/stream/server/proto" proto "github.com/micro/go-micro/examples/stream/server/proto"
"github.com/micro/go-micro/v2" "github.com/micro/go-micro/v2"
) )

View File

@ -1,11 +1,11 @@
// Code generated by protoc-gen-micro. DO NOT EDIT. // Code generated by protoc-gen-micro. DO NOT EDIT.
// source: github.com/micro/examples/stream/server/proto/stream.proto // source: github.com/micro/go-micro/examples/stream/server/proto/stream.proto
/* /*
Package stream is a generated protocol buffer package. Package stream is a generated protocol buffer package.
It is generated from these files: It is generated from these files:
github.com/micro/examples/stream/server/proto/stream.proto github.com/micro/go-micro/examples/stream/server/proto/stream.proto
It has these top-level messages: It has these top-level messages:
Request Request

View File

@ -1,11 +1,11 @@
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// source: github.com/micro/examples/stream/server/proto/stream.proto // source: github.com/micro/go-micro/examples/stream/server/proto/stream.proto
/* /*
Package stream is a generated protocol buffer package. Package stream is a generated protocol buffer package.
It is generated from these files: It is generated from these files:
github.com/micro/examples/stream/server/proto/stream.proto github.com/micro/go-micro/examples/stream/server/proto/stream.proto
It has these top-level messages: It has these top-level messages:
Request Request
@ -231,11 +231,11 @@ var _Streamer_serviceDesc = grpc.ServiceDesc{
ServerStreams: true, ServerStreams: true,
}, },
}, },
Metadata: "github.com/micro/examples/stream/server/proto/stream.proto", Metadata: "github.com/micro/go-micro/examples/stream/server/proto/stream.proto",
} }
func init() { func init() {
proto.RegisterFile("github.com/micro/examples/stream/server/proto/stream.proto", fileDescriptor0) proto.RegisterFile("github.com/micro/go-micro/examples/stream/server/proto/stream.proto", fileDescriptor0)
} }
var fileDescriptor0 = []byte{ var fileDescriptor0 = []byte{

View File

@ -8,7 +8,7 @@ import (
"time" "time"
"github.com/gorilla/websocket" "github.com/gorilla/websocket"
proto "github.com/micro/examples/stream/server/proto" proto "github.com/micro/go-micro/examples/stream/server/proto"
"github.com/micro/go-micro/v2/client" "github.com/micro/go-micro/v2/client"
"github.com/micro/go-micro/v2/web" "github.com/micro/go-micro/v2/web"
) )

View File

@ -9,24 +9,24 @@ Find out more on the usage at [micro/new](https://github.com/micro/micro/tree/ma
### API ### API
``` ```
micro new --type api --alias template github.com/micro/examples/template/api micro new --type api --alias template github.com/micro/go-micro/examples/template/api
``` ```
### FNC ### FNC
``` ```
micro new --type fnc --alias template github.com/micro/examples/template/fnc micro new --type fnc --alias template github.com/micro/go-micro/examples/template/fnc
``` ```
### SRV ### SRV
``` ```
micro new --type srv --alias template github.com/micro/examples/template/srv micro new --type srv --alias template github.com/micro/go-micro/examples/template/srv
``` ```
### WEB ### WEB
``` ```
micro new --type web --alias template github.com/micro/examples/template/web micro new --type web --alias template github.com/micro/go-micro/examples/template/web
``` ```

View File

@ -3,7 +3,7 @@ package client
import ( import (
"context" "context"
example "github.com/micro/examples/template/srv/proto/example" example "github.com/micro/go-micro/examples/template/srv/proto/example"
"github.com/micro/go-micro/v2" "github.com/micro/go-micro/v2"
"github.com/micro/go-micro/v2/server" "github.com/micro/go-micro/v2/server"
) )

View File

@ -5,8 +5,8 @@ import (
"encoding/json" "encoding/json"
"github.com/micro/go-micro/v2/util/log" "github.com/micro/go-micro/v2/util/log"
"github.com/micro/examples/template/api/client" "github.com/micro/go-micro/examples/template/api/client"
example "github.com/micro/examples/template/srv/proto/example" example "github.com/micro/go-micro/examples/template/srv/proto/example"
api "github.com/micro/go-micro/v2/api/proto" api "github.com/micro/go-micro/v2/api/proto"
"github.com/micro/go-micro/v2/errors" "github.com/micro/go-micro/v2/errors"
) )

View File

@ -3,11 +3,11 @@ package main
import ( import (
"github.com/micro/go-micro/v2/util/log" "github.com/micro/go-micro/v2/util/log"
"github.com/micro/examples/template/api/client" "github.com/micro/go-micro/examples/template/api/client"
"github.com/micro/examples/template/api/handler" "github.com/micro/go-micro/examples/template/api/handler"
"github.com/micro/go-micro/v2" "github.com/micro/go-micro/v2"
example "github.com/micro/examples/template/api/proto/example" example "github.com/micro/go-micro/examples/template/api/proto/example"
) )
func main() { func main() {

Some files were not shown because too many files have changed in this diff Show More