TUN-528: Move cloudflared into a separate repo

This commit is contained in:
Areg Harutyunyan
2018-05-01 18:45:06 -05:00
parent e8c621a648
commit d06fc520c7
4726 changed files with 1763680 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "go_default_library",
srcs = [
"generate.go",
"test.capnp.go",
],
importpath = "zombiezen.com/go/capnproto2/rpc/internal/testcapnp",
visibility = ["//rpc:__subpackages__"],
deps = [
"//:go_default_library",
"//encoding/text:go_default_library",
"//schemas:go_default_library",
"//server:go_default_library",
"@org_golang_x_net//context:go_default_library",
],
)

View File

@@ -0,0 +1,3 @@
package testcapnp
//go:generate capnp compile -I ../../../std -ogo test.capnp

View File

@@ -0,0 +1,40 @@
# Test interfaces for RPC tests.
using Go = import "/go.capnp";
@0xef12a34b9807e19c;
$Go.package("testcapnp");
$Go.import("zombiezen.com/go/capnproto2/rpc/internal/testcapnp");
interface Handle {}
interface HandleFactory {
newHandle @0 () -> (handle :Handle);
}
interface Hanger {
hang @0 () -> ();
# Block until context is cancelled
}
interface CallOrder {
getCallSequence @0 (expected: UInt32) -> (n: UInt32);
# First call returns 0, next returns 1, ...
#
# The input `expected` is ignored but useful for disambiguating debug logs.
}
interface Echoer extends(CallOrder) {
echo @0 (cap :CallOrder) -> (cap :CallOrder);
# Just returns the input cap.
}
interface PingPong {
echoNum @0 (n :Int32) -> (n :Int32);
}
# Example interfaces
interface Adder {
add @0 (a :Int32, b :Int32) -> (result :Int32);
}

File diff suppressed because it is too large Load Diff