Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/coder/coder
/ WithID
Function
WithID
tailnet/test/peer.go:25–29 ·
view source on GitHub ↗
(id uuid.UUID)
Source
from the content-addressed store, hash-verified
23
type
PeerOption
func
(*Peer)
24
25
func
WithID(id uuid.UUID) PeerOption {
26
return
func
(p *Peer) {
27
p.ID = id
28
}
29
}
30
31
func
WithAuth(auth tailnet.CoordinateeAuth) PeerOption {
32
return
func
(p *Peer) {
Callers
2
TestCoordinator
Function · 0.92
NewAgent
Function · 0.85
Calls
no outgoing calls
Tested by
1
TestCoordinator
Function · 0.74