-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
obsservice: move the http proxy to its own package
Release note: None
- Loading branch information
1 parent
726e978
commit 7e07fc1
Showing
5 changed files
with
20 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +0,0 @@ | ||
load("@io_bazel_rules_go//go:def.bzl", "go_library") | ||
|
||
go_library( | ||
name = "obslib", | ||
srcs = ["lib.go"], | ||
importpath = "github.com/cockroachdb/cockroach/pkg/obsservice/obslib", | ||
visibility = ["//visibility:public"], | ||
deps = [ | ||
"//pkg/cli/exit", | ||
"//pkg/util/log", | ||
"//pkg/util/syncutil", | ||
"@com_github_cockroachdb_cmux//:cmux", | ||
"@com_github_cockroachdb_errors//:errors", | ||
], | ||
) | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
load("@io_bazel_rules_go//go:def.bzl", "go_library") | ||
|
||
go_library( | ||
name = "httpproxy", | ||
srcs = ["reverseproxy.go"], | ||
importpath = "github.com/cockroachdb/cockroach/pkg/obsservice/obslib/httpproxy", | ||
visibility = ["//visibility:public"], | ||
deps = [ | ||
"//pkg/cli/exit", | ||
"//pkg/util/log", | ||
"//pkg/util/syncutil", | ||
"@com_github_cockroachdb_cmux//:cmux", | ||
"@com_github_cockroachdb_errors//:errors", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
package obslib | ||
package httpproxy | ||
|
||
import ( | ||
"context" | ||
|