mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-24 02:31:18 -08:00
Select the published reco-backed test server with a build tag while preserving the default implementation and existing caller API. Pin the public module with its proxy-verified checksums; no workspace is needed. Accept incremental peer messages in the TSP test. Exercise legacy map semantics with the default server and version-floor rejection with reco, including current-version streaming, without manual test skips. Document GOFLAGS usage so child Go builds inherit the experiment tag. Updates tailscale/corp#49097 Change-Id: I9b3e086c4c6a9a57a076e76b883422875c843f20 Signed-off-by: Brad Fitzpatrick <[email protected]>
19 lines
650 B
Go
19 lines
650 B
Go
// Copyright (c) Tailscale Inc & contributors
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
//go:build experiment.reco
|
|
|
|
package testcontrol
|
|
|
|
import "github.com/bradfitz/reco/recotestcontrol"
|
|
|
|
// Re-export the test server API so callers can select either implementation
|
|
// using only a build tag. The reco implementation supports capability 109+.
|
|
type Server = recotestcontrol.Server
|
|
type AuthPath = recotestcontrol.AuthPath
|
|
type MasqueradePair = recotestcontrol.MasqueradePair
|
|
type AltMapStreamFunc = recotestcontrol.AltMapStreamFunc
|
|
type MapStreamWriter = recotestcontrol.MapStreamWriter
|
|
|
|
var RejectRequestForPath = recotestcontrol.RejectRequestForPath
|