This repository has been archived by the owner on Aug 21, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
- Loading branch information
1 parent
445fe9c
commit ca07e04
Showing
13 changed files
with
46 additions
and
58 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Binaries for programs and plugins | ||
/repospanner | ||
/repoclient | ||
/repobridge | ||
/repohookrunner | ||
*.exe | ||
*.dll | ||
|
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
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,19 +1,19 @@ | ||
// +build !nonh2 | ||
|
||
package client | ||
package bridge | ||
|
||
import ( | ||
"net/http" | ||
|
||
"golang.org/x/net/http2" | ||
) | ||
|
||
// HasH2 returns whether this client was compiled with h2 support | ||
// HasH2 returns whether this bridge was compiled with h2 support | ||
func HasH2() bool { | ||
return true | ||
} | ||
|
||
func maybeConfigureH2(transport *http.Transport) { | ||
err := http2.ConfigureTransport(transport) | ||
checkError(err, "Error initializing HTTP/2 transport") | ||
} | ||
} |
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,16 +1,16 @@ | ||
// +build nonh2 | ||
|
||
package client | ||
package bridge | ||
|
||
import ( | ||
"net/http" | ||
) | ||
|
||
// HasH2 returns whether this client was compiled with h2 support | ||
// HasH2 returns whether this bridge was compiled with h2 support | ||
func HasH2() bool { | ||
return false | ||
} | ||
|
||
func maybeConfigureH2(transport *http.Transport) { | ||
// Not configuring h2 | ||
} | ||
} |
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
File renamed without changes.
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
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