This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package greeterendpoint | |
import ( | |
"context" | |
"github.com/go-kit/kit/log" | |
"github.com/antklim/go-microservices/go-kit-greeter/pkg/greeterservice" | |
"github.com/go-kit/kit/endpoint" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package greetertransport | |
import ( | |
"context" | |
"encoding/json" | |
"errors" | |
"net/http" | |
"github.com/antklim/go-microservices/go-kit-greeter/pkg/greeterendpoint" | |
"github.com/go-kit/kit/log" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package greetertransport | |
import ( | |
"context" | |
"github.com/antklim/go-microservices/go-kit-greeter/pb" | |
"github.com/antklim/go-microservices/go-kit-greeter/pkg/greeterendpoint" | |
"github.com/go-kit/kit/log" | |
grpctransport "github.com/go-kit/kit/transport/grpc" | |
oldcontext "golang.org/x/net/context" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package greetersd | |
import ( | |
"math/rand" | |
"os" | |
"strconv" | |
"time" | |
"github.com/go-kit/kit/log" | |
"github.com/go-kit/kit/sd" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"flag" | |
"fmt" | |
"net" | |
"net/http" | |
"os" | |
"os/signal" | |
"syscall" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
protoc greeter.proto --go_out=plugins=grpc:. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package greeterservice | |
import ( | |
"time" | |
"github.com/go-kit/kit/log" | |
) | |
// ServiceMiddleware describes a service middleware. | |
type ServiceMiddleware func(Service) Service |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package greeterendpoint | |
import ( | |
"context" | |
"time" | |
"github.com/go-kit/kit/endpoint" | |
"github.com/go-kit/kit/log" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package greeterendpoint | |
import ( | |
"net/http" | |
ocontext "golang.org/x/net/context" | |
"github.com/NYTimes/gizmo/server" | |
"github.com/antklim/go-microservices/gizmo-greeter/pkg/greeterservice" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package greetertransport | |
import ( | |
"context" | |
"github.com/NYTimes/gizmo/server" | |
"google.golang.org/grpc" | |
"errors" | |
"net/http" |