mirror of
https://github.com/juanfont/headscale.git
synced 2026-08-16 12:20:44 +09:00
4cca63155d
Every Go-identifier reference in // and /* */ comments now uses
godoc's [Name] linking syntax so pkg.go.dev and `go doc` render
them as clickable cross-references. No behaviour change.
Pattern applied across the tree:
In-package [Foo], [Foo.Bar]
Cross-package [pkg.Foo], [pkg.Foo.Bar]
Stdlib [netip.Prefix], [errors.Is], [context.Context]
Tailscale [tailcfg.MapResponse], [tailcfg.Node.CapMap],
[tailcfg.NodeAttrSuggestExitNode]
Skip rules:
- File:line refs left as plain text
- HuJSON wire keys inside backtick raw strings untouched
- ACL/policy syntax tokens (tag:foo, autogroup:self, ...) not Go
symbols, left as plain text
- JSON/OIDC wire keys, gorm tags, RFC IPv6 placeholders, markdown
link tags, decorative dividers — all left as-is
13 lines
229 B
Go
13 lines
229 B
Go
package state
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
// Test configuration for [NodeStore] batching.
|
|
// These values are optimized for test speed rather than production use.
|
|
const (
|
|
TestBatchSize = 5
|
|
TestBatchTimeout = 5 * time.Millisecond
|
|
)
|