You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/relui/main.go
+28-1Lines changed: 28 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -6,19 +6,25 @@
6
6
package main
7
7
8
8
import (
9
+
"context"
9
10
"flag"
10
11
"io/ioutil"
11
12
"log"
12
13
"net/http"
13
14
"os"
14
15
"path/filepath"
15
16
17
+
"cloud.google.com/go/pubsub"
16
18
"github.com/golang/protobuf/proto"
17
19
reluipb "golang.org/x/build/cmd/relui/protos"
20
+
"google.golang.org/grpc/codes"
21
+
"google.golang.org/grpc/status"
18
22
)
19
23
20
24
var (
21
25
devDataDir=flag.String("dev-data-directory", defaultDevDataDir(), "Development-only directory to use for storage of application state.")
26
+
projectID=flag.String("project-id", os.Getenv("PUBSUB_PROJECT_ID"), "Pubsub project ID for communicating with workers. Uses PUBSUB_PROJECT_ID if unset.")
27
+
topicID=flag.String("topic-id", "relui-development", "Pubsub topic ID for communicating with workers.")
22
28
)
23
29
24
30
funcmain() {
@@ -27,7 +33,12 @@ func main() {
27
33
iferr:=fs.load(); err!=nil {
28
34
log.Fatalf("Error loading state from %q: %v", *devDataDir, err)
0 commit comments