1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-02-04 18:21:53 +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"
"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"
api "github.com/micro/go-micro/v2/api/proto"
"github.com/micro/go-micro/v2/errors"

View File

@ -3,7 +3,7 @@ package main
import (
"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/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.
// 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.
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:
CallRequest

View File

@ -1,11 +1,11 @@
// 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.
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:
CallRequest
@ -159,7 +159,7 @@ var _Example_serviceDesc = grpc.ServiceDesc{
},
},
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
@ -223,10 +223,10 @@ var _Foo_serviceDesc = grpc.ServiceDesc{
},
},
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{
// 203 bytes of a gzipped FileDescriptorProto

View File

@ -1,11 +1,11 @@
// 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.
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:
CallRequest

View File

@ -1,11 +1,11 @@
// 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.
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:
CallRequest
@ -159,7 +159,7 @@ var _Example_serviceDesc = grpc.ServiceDesc{
},
},
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
@ -223,10 +223,10 @@ var _Foo_serviceDesc = grpc.ServiceDesc{
},
},
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{
// 203 bytes of a gzipped FileDescriptorProto

View File

@ -3,7 +3,7 @@ package main
import (
"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/errors"

View File

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

View File

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

View File

@ -1,11 +1,11 @@
// 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.
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:
Request
@ -16,8 +16,8 @@ package hotel
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "github.com/micro/examples/booking/srv/profile/proto"
import _ "github.com/micro/examples/booking/srv/rate/proto"
import _ "github.com/micro/go-micro/examples/booking/srv/profile/proto"
import _ "github.com/micro/go-micro/examples/booking/srv/rate/proto"
import (
context "context"

View File

@ -1,11 +1,11 @@
// 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.
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:
Request
@ -16,8 +16,8 @@ package hotel
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import profile "github.com/micro/examples/booking/srv/profile/proto"
import rate "github.com/micro/examples/booking/srv/rate/proto"
import profile "github.com/micro/go-micro/examples/booking/srv/profile/proto"
import rate "github.com/micro/go-micro/examples/booking/srv/rate/proto"
import (
context "golang.org/x/net/context"
@ -157,11 +157,11 @@ var _Hotel_serviceDesc = grpc.ServiceDesc{
},
},
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() {
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{

View File

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

View File

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

View File

@ -1,11 +1,11 @@
// 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.
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:
Request

View File

@ -1,11 +1,11 @@
// 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.
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:
Request
@ -165,11 +165,11 @@ var _Auth_serviceDesc = grpc.ServiceDesc{
},
},
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() {
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{

View File

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

View File

@ -1,11 +1,11 @@
// 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.
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:
Request

View File

@ -1,11 +1,11 @@
// 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.
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:
Request
@ -150,11 +150,11 @@ var _Geo_serviceDesc = grpc.ServiceDesc{
},
},
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() {
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{

View File

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

View File

@ -1,11 +1,11 @@
// 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.
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:
Request

View File

@ -1,11 +1,11 @@
// 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.
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:
Request
@ -289,11 +289,11 @@ var _Profile_serviceDesc = grpc.ServiceDesc{
},
},
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() {
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{

View File

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

View File

@ -1,11 +1,11 @@
// 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.
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:
Request

View File

@ -1,11 +1,11 @@
// 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.
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:
Request
@ -265,11 +265,11 @@ var _Rate_serviceDesc = grpc.ServiceDesc{
},
},
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() {
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{

View File

@ -4,7 +4,7 @@ import (
"fmt"
"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"
)

View File

@ -12,7 +12,7 @@ import (
"github.com/micro/go-micro/v2/metadata"
"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() {

View File

@ -12,7 +12,7 @@ import (
"github.com/micro/go-micro/v2/config/cmd"
"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

View File

@ -4,7 +4,7 @@ import (
"fmt"
"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/client"
"github.com/micro/go-micro/v2/metadata"

View File

@ -4,7 +4,7 @@ import (
"fmt"
"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"
)

View File

@ -6,7 +6,7 @@ import (
"math/rand"
"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/selector"
"github.com/micro/go-micro/v2/config/cmd"

View File

@ -5,7 +5,7 @@ import (
"time"
"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/config/cmd"
"github.com/micro/go-micro/v2/metadata"

View File

@ -1,11 +1,11 @@
// 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.
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:
Event

View File

@ -1,11 +1,11 @@
// 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.
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:
Event
@ -68,7 +68,7 @@ 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{

View File

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

View File

@ -8,7 +8,7 @@ import (
"mime/multipart"
"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"
api "github.com/micro/go-micro/v2/api/proto"
"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
while true; do
github.com/micro/examples/function
github.com/micro/go-micro/examples/function
done
```

View File

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

View File

@ -1,11 +1,11 @@
// 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.
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:
HelloRequest

View File

@ -1,11 +1,11 @@
// 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.
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:
HelloRequest
@ -139,11 +139,11 @@ var _Greeter_serviceDesc = grpc.ServiceDesc{
},
},
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() {
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{

View File

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

View File

@ -4,7 +4,7 @@ import (
"context"
"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/metadata"
)

View File

@ -1,11 +1,11 @@
// 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.
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:
HelloRequest

View File

@ -1,11 +1,11 @@
// 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.
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:
HelloRequest
@ -139,11 +139,11 @@ var _Greeter_serviceDesc = grpc.ServiceDesc{
},
},
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() {
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{

View File

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

View File

@ -5,7 +5,7 @@ import (
"log"
"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"
api "github.com/micro/go-micro/v2/api/proto"
"github.com/micro/go-micro/v2/errors"

View File

@ -7,7 +7,7 @@ import (
"github.com/astaxie/beego"
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/web"
)

View File

@ -5,7 +5,7 @@ import (
"log"
"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/web"
)

View File

@ -11,7 +11,7 @@ import (
"github.com/99designs/gqlgen/graphql"
"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/ast"
)

View File

@ -14,4 +14,4 @@ resolver:
models:
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 (
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 {

View File

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

View File

@ -6,7 +6,7 @@ import (
"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/web"
)

View File

@ -1,11 +1,11 @@
// 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.
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:
Request

View File

@ -1,11 +1,11 @@
// 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.
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:
Request
@ -139,11 +139,11 @@ var _Greeter_serviceDesc = grpc.ServiceDesc{
},
},
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() {
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{

View File

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

View File

@ -4,7 +4,7 @@ import (
"context"
"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"
)

View File

@ -7,7 +7,7 @@ import (
"net/http"
"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() {

View File

@ -5,7 +5,7 @@ import (
"context"
"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/util/log"
"google.golang.org/grpc"

View File

@ -1,5 +1,5 @@
// 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
@ -104,7 +104,7 @@ 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{

View File

@ -1,5 +1,5 @@
// 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

View File

@ -5,7 +5,7 @@ import (
"log"
"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/web"

View File

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

View File

@ -1,5 +1,5 @@
// 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
@ -104,7 +104,7 @@ 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{

View File

@ -1,5 +1,5 @@
// 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

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
@ -45,7 +45,7 @@ docker pull microhq/micro:kubernetes
For go-micro
```
import "github.com/micro/examples/kubernetes/go/micro"
import "github.com/micro/go-micro/examples/kubernetes/go/micro"
```
## Writing a Service
@ -55,7 +55,7 @@ Write a service as you would any other [go-micro](https://github.com/micro/go-mi
```go
import (
"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() {
@ -138,7 +138,7 @@ import (
"net/http"
"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() {
@ -163,7 +163,7 @@ Every go-micro service has a built in Debug.Health endpoint.
### Install
```
go get github.com/micro/examples/kubernetes/cmd/health
go get github.com/micro/go-micro/examples/kubernetes/cmd/health
```
or
@ -368,7 +368,7 @@ $ kubectl get configmap micro --namespace default
Import and use the config
```go
import "github.com/micro/examples/kubernetes/go/config"
import "github.com/micro/go-micro/examples/kubernetes/go/config"
cfg := config.NewConfig()

View File

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

View File

@ -3,7 +3,7 @@ package main
import (
"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/metadata"

View File

@ -5,7 +5,7 @@ import (
"log"
"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/metadata"

View File

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

View File

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

View File

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

View File

@ -5,7 +5,7 @@ import (
"time"
"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/util/log"
"github.com/pborman/uuid"

View File

@ -1,7 +1,7 @@
package main
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/metadata"
"github.com/micro/go-micro/v2/server"

View File

@ -1,11 +1,11 @@
// 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.
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:
Event

View File

@ -1,11 +1,11 @@
// 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.
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:
Event
@ -68,7 +68,7 @@ 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{

View File

@ -5,7 +5,7 @@ import (
"log"
"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/errors"
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/transport"
hello "github.com/micro/examples/greeter/srv/proto/hello"
hello "github.com/micro/go-micro/examples/greeter/srv/proto/hello"
"context"
)

View File

@ -5,7 +5,7 @@ import (
"time"
"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/transport"
)

View File

@ -1,11 +1,11 @@
// 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.
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:
Request

View File

@ -1,11 +1,11 @@
// 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.
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:
Request
@ -139,11 +139,11 @@ var _Say_serviceDesc = grpc.ServiceDesc{
},
},
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() {
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{

View File

@ -4,11 +4,11 @@ import (
"log"
"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/server"
example "github.com/micro/examples/server/proto/example"
example "github.com/micro/go-micro/examples/server/proto/example"
)
type Example struct{}

View File

@ -3,7 +3,7 @@ package handler
import (
"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/server"

View File

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

View File

@ -1,11 +1,11 @@
// 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.
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:
Message

View File

@ -1,11 +1,11 @@
// 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.
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:
Message
@ -355,11 +355,11 @@ var _Example_serviceDesc = grpc.ServiceDesc{
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() {
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{

View File

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

View File

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

View File

@ -6,7 +6,7 @@ import (
"context"
"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"
)

View File

@ -1,5 +1,5 @@
// 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
@ -104,7 +104,7 @@ 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{

View File

@ -1,5 +1,5 @@
// 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

View File

@ -5,7 +5,7 @@ import (
"log"
"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/errors"
shard "github.com/micro/go-plugins/wrapper/select/shard/v2"

View File

@ -5,7 +5,7 @@ import (
"time"
"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"
)

View File

@ -6,7 +6,7 @@ import (
"io"
"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"
)

View File

@ -1,11 +1,11 @@
// 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.
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:
Request

View File

@ -1,11 +1,11 @@
// 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.
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:
Request
@ -231,11 +231,11 @@ var _Streamer_serviceDesc = grpc.ServiceDesc{
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() {
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{

View File

@ -8,7 +8,7 @@ import (
"time"
"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/web"
)

View File

@ -9,24 +9,24 @@ Find out more on the usage at [micro/new](https://github.com/micro/micro/tree/ma
### 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
```
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
```
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
```
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 (
"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/server"
)

View File

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

View File

@ -3,11 +3,11 @@ package main
import (
"github.com/micro/go-micro/v2/util/log"
"github.com/micro/examples/template/api/client"
"github.com/micro/examples/template/api/handler"
"github.com/micro/go-micro/examples/template/api/client"
"github.com/micro/go-micro/examples/template/api/handler"
"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() {

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