mirror of
https://github.com/tailscale/tailscale.git
synced 2025-12-03 02:21:58 +00:00
prober: rename Probe to ProbeFunc.
Making way for a future Probe struct to encapsulate per-probe state. Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
committed by
Dave Anderson
parent
7b4960316b
commit
94aaec5c66
@@ -12,8 +12,8 @@ import (
|
||||
|
||||
// TCP returns a Probe that healthchecks a TCP endpoint.
|
||||
//
|
||||
// The Probe reports whether it can successfully connect to addr.
|
||||
func TCP(addr string) Probe {
|
||||
// The ProbeFunc reports whether it can successfully connect to addr.
|
||||
func TCP(addr string) ProbeFunc {
|
||||
return func(ctx context.Context) error {
|
||||
return probeTCP(ctx, addr)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user