| Index: go/src/infra/monorail/monorail.go
|
| diff --git a/go/src/infra/monorail/monorail.go b/go/src/infra/monorail/monorail.go
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..8aa3586b75c896c33d04eb069c0828624e0e14b5
|
| --- /dev/null
|
| +++ b/go/src/infra/monorail/monorail.go
|
| @@ -0,0 +1,20 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +package monorail
|
| +
|
| +import "fmt"
|
| +
|
| +// AuthScope is OAuth 2.0 auth scope used by Monorail.
|
| +const AuthScope = "https://www.googleapis.com/auth/userinfo.email"
|
| +
|
| +// LabelRestrictViewGoogle specifies that an issue must be visible to googlers only.
|
| +const LabelRestrictViewGoogle = "Restrict-View-Google"
|
| +
|
| +var errGrpcOptions = fmt.Errorf("options are not supported")
|
| +
|
| +// IssueURL returns a URL to human-consumable HTML page for the issue.
|
| +func IssueURL(host, project string, id int32) string {
|
| + return fmt.Sprintf("https://%s/p/%s/issues/detail?id=%d", host, project, id)
|
| +}
|
|
|