mirror of
https://github.com/cloudflare/cloudflared.git
synced 2025-05-23 01:56:34 +00:00

Combines the tunnelrpc and quic/schema capnp files into the same module. To help reduce future issues with capnp id generation, capnpids are provided in the capnp files from the existing capnp struct ids generated in the go files. Reduces the overall interface of the Capnp methods to the rest of the code by providing an interface that will handle the quic protocol selection. Introduces a new `rpc-timeout` config that will allow all of the SessionManager and ConfigurationManager RPC requests to have a timeout. The timeout for these values is set to 5 seconds as non of these operations for the managers should take a long time to complete. Removed the RPC-specific logger as it never provided good debugging value as the RPC method names were not visible in the logs.
32 lines
1015 B
Cap'n Proto
32 lines
1015 B
Cap'n Proto
# Generate go.capnp.out with:
|
|
# capnp compile -o- go.capnp > go.capnp.out
|
|
# Must run inside this directory to preserve paths.
|
|
|
|
@0xd12a1c51fedd6c88;
|
|
|
|
annotation package(file) :Text;
|
|
# The Go package name for the generated file.
|
|
|
|
annotation import(file) :Text;
|
|
# The Go import path that the generated file is accessible from.
|
|
# Used to generate import statements and check if two types are in the
|
|
# same package.
|
|
|
|
annotation doc(struct, field, enum) :Text;
|
|
# Adds a doc comment to the generated code.
|
|
|
|
annotation tag(enumerant) :Text;
|
|
# Changes the string representation of the enum in the generated code.
|
|
|
|
annotation notag(enumerant) :Void;
|
|
# Removes the string representation of the enum in the generated code.
|
|
|
|
annotation customtype(field) :Text;
|
|
# OBSOLETE, not used by code generator.
|
|
|
|
annotation name(struct, field, union, enum, enumerant, interface, method, param, annotation, const, group) :Text;
|
|
# Used to rename the element in the generated code.
|
|
|
|
$package("capnp");
|
|
$import("zombiezen.com/go/capnproto2");
|