OpenWeather-gRPC-API/test-client/main.go

25 lines
427 B
Go
Raw Normal View History

package main
import (
"log"
2022-09-01 23:43:01 -04:00
pb "codeberg.org/andcscott/OpenWeather-gRPC-API/proto"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure"
)
func main() {
conn, err := grpc.Dial("localhost:5000", grpc.WithTransportCredentials(insecure.NewCredentials()))
if err != nil {
log.Fatalln(err)
}
defer conn.Close()
c := pb.NewWeatherServiceClient(conn)
//doCurrent(c)
2022-09-01 22:51:36 -04:00
//doFiveDay(c)
doLocation(c)
}