MCPcopy 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

23type PeerOption func(*Peer)
24
25func WithID(id uuid.UUID) PeerOption {
26 return func(p *Peer) {
27 p.ID = id
28 }
29}
30
31func WithAuth(auth tailnet.CoordinateeAuth) PeerOption {
32 return func(p *Peer) {

Callers 2

TestCoordinatorFunction · 0.92
NewAgentFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestCoordinatorFunction · 0.74