123456789101112131415161718192021222324 |
- // Copyright 2019 github.com. All rights reserved.
- // Use of this source code is governed by github.com.
- package tests
- import (
- "log"
- "smart-alarm/pb"
- "google.golang.org/grpc"
- )
- var client pb.SmartSiteClient
- const ServerAddr = "127.0.0.1:10001"
- func init() {
- // Set up a connection to the server.
- conn, err := grpc.Dial(ServerAddr, grpc.WithInsecure())
- if err != nil {
- log.Fatalf("did not connect: %v", err)
- }
- client = pb.NewSmartSiteClient(conn)
- }
|