# README
AWS Cloud Map Resolver for grpc-go
grpc-cloudmap-resolver is an implementation
of grpc-go.Resolver
using AWS Cloud Map.
Installation
go get github.com/ab180/grpc-cloudmap-resolver
Example
See godoc for more details.
package main
import (
"log"
"google.golang.org/grpc"
cloudmap "github.com/ab180/grpc-cloudmap-resolver"
)
func main() {
// register custom builder
// cloudmap.Register(
// cloudmap.WithSession(your_session),
// cloudmap.WithRefreshInterval(1 * time.Minute),
// )
conn, err := grpc.Dial(
cloudmap.BuildTarget("your-namespace", "your-service"),
grpc.WithInsecure(),
grpc.WithBlock(),
grpc.WithDefaultServiceConfig(`{"loadBalancingPolicy":"round_robin"}`),
)
if err != nil {
log.Fatal("cannot create a grpc client connection")
}
_ = conn
}
# Functions
BuildTarget builds grpc target string with given namespace and service.
Register builds builder with given opts and register it to the resolver map.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author