chore: switch to moul.io/protoc-gen-gotemplate
This commit is contained in:
		| @@ -1,4 +1,4 @@ | ||||
| package: github.com/moul/protoc-gen-gotemplate/examples/go-kit | ||||
| package: moul.io/protoc-gen-gotemplate/examples/go-kit | ||||
| import: | ||||
| - package: github.com/go-kit/kit | ||||
|   subpackages: | ||||
|   | ||||
| @@ -12,23 +12,23 @@ import ( | ||||
| 	"github.com/gorilla/handlers" | ||||
| 	"google.golang.org/grpc" | ||||
|  | ||||
| 	session_svc "github.com/moul/protoc-gen-gotemplate/examples/go-kit/services/session" | ||||
| 	session_endpoints "github.com/moul/protoc-gen-gotemplate/examples/go-kit/services/session/gen/endpoints" | ||||
| 	session_pb "github.com/moul/protoc-gen-gotemplate/examples/go-kit/services/session/gen/pb" | ||||
| 	session_grpctransport "github.com/moul/protoc-gen-gotemplate/examples/go-kit/services/session/gen/transports/grpc" | ||||
| 	session_httptransport "github.com/moul/protoc-gen-gotemplate/examples/go-kit/services/session/gen/transports/http" | ||||
| 	session_svc "moul.io/protoc-gen-gotemplate/examples/go-kit/services/session" | ||||
| 	session_endpoints "moul.io/protoc-gen-gotemplate/examples/go-kit/services/session/gen/endpoints" | ||||
| 	session_pb "moul.io/protoc-gen-gotemplate/examples/go-kit/services/session/gen/pb" | ||||
| 	session_grpctransport "moul.io/protoc-gen-gotemplate/examples/go-kit/services/session/gen/transports/grpc" | ||||
| 	session_httptransport "moul.io/protoc-gen-gotemplate/examples/go-kit/services/session/gen/transports/http" | ||||
|  | ||||
| 	sprint_svc "github.com/moul/protoc-gen-gotemplate/examples/go-kit/services/sprint" | ||||
| 	sprint_endpoints "github.com/moul/protoc-gen-gotemplate/examples/go-kit/services/sprint/gen/endpoints" | ||||
| 	sprint_pb "github.com/moul/protoc-gen-gotemplate/examples/go-kit/services/sprint/gen/pb" | ||||
| 	sprint_grpctransport "github.com/moul/protoc-gen-gotemplate/examples/go-kit/services/sprint/gen/transports/grpc" | ||||
| 	sprint_httptransport "github.com/moul/protoc-gen-gotemplate/examples/go-kit/services/sprint/gen/transports/http" | ||||
| 	sprint_svc "moul.io/protoc-gen-gotemplate/examples/go-kit/services/sprint" | ||||
| 	sprint_endpoints "moul.io/protoc-gen-gotemplate/examples/go-kit/services/sprint/gen/endpoints" | ||||
| 	sprint_pb "moul.io/protoc-gen-gotemplate/examples/go-kit/services/sprint/gen/pb" | ||||
| 	sprint_grpctransport "moul.io/protoc-gen-gotemplate/examples/go-kit/services/sprint/gen/transports/grpc" | ||||
| 	sprint_httptransport "moul.io/protoc-gen-gotemplate/examples/go-kit/services/sprint/gen/transports/http" | ||||
|  | ||||
| 	user_svc "github.com/moul/protoc-gen-gotemplate/examples/go-kit/services/user" | ||||
| 	user_endpoints "github.com/moul/protoc-gen-gotemplate/examples/go-kit/services/user/gen/endpoints" | ||||
| 	user_pb "github.com/moul/protoc-gen-gotemplate/examples/go-kit/services/user/gen/pb" | ||||
| 	user_grpctransport "github.com/moul/protoc-gen-gotemplate/examples/go-kit/services/user/gen/transports/grpc" | ||||
| 	user_httptransport "github.com/moul/protoc-gen-gotemplate/examples/go-kit/services/user/gen/transports/http" | ||||
| 	user_svc "moul.io/protoc-gen-gotemplate/examples/go-kit/services/user" | ||||
| 	user_endpoints "moul.io/protoc-gen-gotemplate/examples/go-kit/services/user/gen/endpoints" | ||||
| 	user_pb "moul.io/protoc-gen-gotemplate/examples/go-kit/services/user/gen/pb" | ||||
| 	user_grpctransport "moul.io/protoc-gen-gotemplate/examples/go-kit/services/user/gen/transports/grpc" | ||||
| 	user_httptransport "moul.io/protoc-gen-gotemplate/examples/go-kit/services/user/gen/transports/http" | ||||
| ) | ||||
|  | ||||
| func main() { | ||||
|   | ||||
| @@ -9,8 +9,8 @@ import ( | ||||
| 	grpctransport "github.com/go-kit/kit/transport/grpc" | ||||
| 	"google.golang.org/grpc" | ||||
|  | ||||
| 	endpoints "github.com/moul/protoc-gen-gotemplate/examples/go-kit/services/session/gen/endpoints" | ||||
| 	pb "github.com/moul/protoc-gen-gotemplate/examples/go-kit/services/session/gen/pb" | ||||
| 	endpoints "moul.io/protoc-gen-gotemplate/examples/go-kit/services/session/gen/endpoints" | ||||
| 	pb "moul.io/protoc-gen-gotemplate/examples/go-kit/services/session/gen/pb" | ||||
| ) | ||||
|  | ||||
| func New(conn *grpc.ClientConn, logger log.Logger) pb.SessionServiceServer { | ||||
|   | ||||
| @@ -5,7 +5,7 @@ import ( | ||||
| 	"fmt" | ||||
|  | ||||
| 	"github.com/go-kit/kit/endpoint" | ||||
| 	pb "github.com/moul/protoc-gen-gotemplate/examples/go-kit/services/session/gen/pb" | ||||
| 	pb "moul.io/protoc-gen-gotemplate/examples/go-kit/services/session/gen/pb" | ||||
| 	oldcontext "golang.org/x/net/context" | ||||
| ) | ||||
|  | ||||
|   | ||||
| @@ -7,8 +7,8 @@ import ( | ||||
| 	grpctransport "github.com/go-kit/kit/transport/grpc" | ||||
| 	oldcontext "golang.org/x/net/context" | ||||
|  | ||||
| 	endpoints "github.com/moul/protoc-gen-gotemplate/examples/go-kit/services/session/gen/endpoints" | ||||
| 	pb "github.com/moul/protoc-gen-gotemplate/examples/go-kit/services/session/gen/pb" | ||||
| 	endpoints "moul.io/protoc-gen-gotemplate/examples/go-kit/services/session/gen/endpoints" | ||||
| 	pb "moul.io/protoc-gen-gotemplate/examples/go-kit/services/session/gen/pb" | ||||
| ) | ||||
|  | ||||
| // avoid import errors | ||||
|   | ||||
| @@ -8,8 +8,8 @@ import ( | ||||
|  | ||||
| 	gokit_endpoint "github.com/go-kit/kit/endpoint" | ||||
| 	httptransport "github.com/go-kit/kit/transport/http" | ||||
| 	endpoints "github.com/moul/protoc-gen-gotemplate/examples/go-kit/services/session/gen/endpoints" | ||||
| 	pb "github.com/moul/protoc-gen-gotemplate/examples/go-kit/services/session/gen/pb" | ||||
| 	endpoints "moul.io/protoc-gen-gotemplate/examples/go-kit/services/session/gen/endpoints" | ||||
| 	pb "moul.io/protoc-gen-gotemplate/examples/go-kit/services/session/gen/pb" | ||||
| ) | ||||
|  | ||||
| var _ = log.Printf | ||||
|   | ||||
| @@ -5,7 +5,7 @@ import ( | ||||
|  | ||||
| 	"golang.org/x/net/context" | ||||
|  | ||||
| 	pb "github.com/moul/protoc-gen-gotemplate/examples/go-kit/services/session/gen/pb" | ||||
| 	pb "moul.io/protoc-gen-gotemplate/examples/go-kit/services/session/gen/pb" | ||||
| ) | ||||
|  | ||||
| type Service struct{} | ||||
|   | ||||
| @@ -9,8 +9,8 @@ import ( | ||||
| 	grpctransport "github.com/go-kit/kit/transport/grpc" | ||||
| 	"google.golang.org/grpc" | ||||
|  | ||||
| 	endpoints "github.com/moul/protoc-gen-gotemplate/examples/go-kit/services/sprint/gen/endpoints" | ||||
| 	pb "github.com/moul/protoc-gen-gotemplate/examples/go-kit/services/sprint/gen/pb" | ||||
| 	endpoints "moul.io/protoc-gen-gotemplate/examples/go-kit/services/sprint/gen/endpoints" | ||||
| 	pb "moul.io/protoc-gen-gotemplate/examples/go-kit/services/sprint/gen/pb" | ||||
| ) | ||||
|  | ||||
| func New(conn *grpc.ClientConn, logger log.Logger) pb.SprintServiceServer { | ||||
|   | ||||
| @@ -5,7 +5,7 @@ import ( | ||||
| 	"fmt" | ||||
|  | ||||
| 	"github.com/go-kit/kit/endpoint" | ||||
| 	pb "github.com/moul/protoc-gen-gotemplate/examples/go-kit/services/sprint/gen/pb" | ||||
| 	pb "moul.io/protoc-gen-gotemplate/examples/go-kit/services/sprint/gen/pb" | ||||
| 	oldcontext "golang.org/x/net/context" | ||||
| ) | ||||
|  | ||||
|   | ||||
| @@ -7,8 +7,8 @@ import ( | ||||
| 	grpctransport "github.com/go-kit/kit/transport/grpc" | ||||
| 	oldcontext "golang.org/x/net/context" | ||||
|  | ||||
| 	endpoints "github.com/moul/protoc-gen-gotemplate/examples/go-kit/services/sprint/gen/endpoints" | ||||
| 	pb "github.com/moul/protoc-gen-gotemplate/examples/go-kit/services/sprint/gen/pb" | ||||
| 	endpoints "moul.io/protoc-gen-gotemplate/examples/go-kit/services/sprint/gen/endpoints" | ||||
| 	pb "moul.io/protoc-gen-gotemplate/examples/go-kit/services/sprint/gen/pb" | ||||
| ) | ||||
|  | ||||
| // avoid import errors | ||||
|   | ||||
| @@ -8,8 +8,8 @@ import ( | ||||
|  | ||||
| 	gokit_endpoint "github.com/go-kit/kit/endpoint" | ||||
| 	httptransport "github.com/go-kit/kit/transport/http" | ||||
| 	endpoints "github.com/moul/protoc-gen-gotemplate/examples/go-kit/services/sprint/gen/endpoints" | ||||
| 	pb "github.com/moul/protoc-gen-gotemplate/examples/go-kit/services/sprint/gen/pb" | ||||
| 	endpoints "moul.io/protoc-gen-gotemplate/examples/go-kit/services/sprint/gen/endpoints" | ||||
| 	pb "moul.io/protoc-gen-gotemplate/examples/go-kit/services/sprint/gen/pb" | ||||
| ) | ||||
|  | ||||
| var _ = log.Printf | ||||
|   | ||||
| @@ -5,7 +5,7 @@ import ( | ||||
|  | ||||
| 	"golang.org/x/net/context" | ||||
|  | ||||
| 	pb "github.com/moul/protoc-gen-gotemplate/examples/go-kit/services/sprint/gen/pb" | ||||
| 	pb "moul.io/protoc-gen-gotemplate/examples/go-kit/services/sprint/gen/pb" | ||||
| ) | ||||
|  | ||||
| type Service struct{} | ||||
|   | ||||
| @@ -9,8 +9,8 @@ import ( | ||||
| 	grpctransport "github.com/go-kit/kit/transport/grpc" | ||||
| 	"google.golang.org/grpc" | ||||
|  | ||||
| 	endpoints "github.com/moul/protoc-gen-gotemplate/examples/go-kit/services/user/gen/endpoints" | ||||
| 	pb "github.com/moul/protoc-gen-gotemplate/examples/go-kit/services/user/gen/pb" | ||||
| 	endpoints "moul.io/protoc-gen-gotemplate/examples/go-kit/services/user/gen/endpoints" | ||||
| 	pb "moul.io/protoc-gen-gotemplate/examples/go-kit/services/user/gen/pb" | ||||
| ) | ||||
|  | ||||
| func New(conn *grpc.ClientConn, logger log.Logger) pb.UserServiceServer { | ||||
|   | ||||
| @@ -5,7 +5,7 @@ import ( | ||||
| 	"fmt" | ||||
|  | ||||
| 	"github.com/go-kit/kit/endpoint" | ||||
| 	pb "github.com/moul/protoc-gen-gotemplate/examples/go-kit/services/user/gen/pb" | ||||
| 	pb "moul.io/protoc-gen-gotemplate/examples/go-kit/services/user/gen/pb" | ||||
| 	oldcontext "golang.org/x/net/context" | ||||
| ) | ||||
|  | ||||
|   | ||||
| @@ -7,8 +7,8 @@ import ( | ||||
| 	grpctransport "github.com/go-kit/kit/transport/grpc" | ||||
| 	oldcontext "golang.org/x/net/context" | ||||
|  | ||||
| 	endpoints "github.com/moul/protoc-gen-gotemplate/examples/go-kit/services/user/gen/endpoints" | ||||
| 	pb "github.com/moul/protoc-gen-gotemplate/examples/go-kit/services/user/gen/pb" | ||||
| 	endpoints "moul.io/protoc-gen-gotemplate/examples/go-kit/services/user/gen/endpoints" | ||||
| 	pb "moul.io/protoc-gen-gotemplate/examples/go-kit/services/user/gen/pb" | ||||
| ) | ||||
|  | ||||
| // avoid import errors | ||||
|   | ||||
| @@ -8,8 +8,8 @@ import ( | ||||
|  | ||||
| 	gokit_endpoint "github.com/go-kit/kit/endpoint" | ||||
| 	httptransport "github.com/go-kit/kit/transport/http" | ||||
| 	endpoints "github.com/moul/protoc-gen-gotemplate/examples/go-kit/services/user/gen/endpoints" | ||||
| 	pb "github.com/moul/protoc-gen-gotemplate/examples/go-kit/services/user/gen/pb" | ||||
| 	endpoints "moul.io/protoc-gen-gotemplate/examples/go-kit/services/user/gen/endpoints" | ||||
| 	pb "moul.io/protoc-gen-gotemplate/examples/go-kit/services/user/gen/pb" | ||||
| ) | ||||
|  | ||||
| var _ = log.Printf | ||||
|   | ||||
| @@ -5,7 +5,7 @@ import ( | ||||
|  | ||||
| 	"golang.org/x/net/context" | ||||
|  | ||||
| 	pb "github.com/moul/protoc-gen-gotemplate/examples/go-kit/services/user/gen/pb" | ||||
| 	pb "moul.io/protoc-gen-gotemplate/examples/go-kit/services/user/gen/pb" | ||||
| ) | ||||
|  | ||||
| type Service struct{} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user