MCPcopy
hub / github.com/netbirdio/netbird / ProxyServiceServer

Struct ProxyServiceServer

management/internals/shared/grpc/proxy.go:82–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82type ProxyServiceServer struct {
83 proto.UnimplementedProxyServiceServer
84
85 // Map of connected proxies: proxy_id -> proxy connection
86 connectedProxies sync.Map
87
88 // Manager for access logs
89 accessLogManager accesslogs.Manager
90
91 mu sync.RWMutex
92 // Manager for reverse proxy operations
93 serviceManager rpservice.Manager
94 // agentNetworkSynth produces synthesised reverse-proxy services from
95 // Agent Network state. Optional — when nil the snapshot path only ships
96 // persisted services.
97 agentNetworkSynth AgentNetworkSynthesizer
98 // agentNetworkLimits handles the pre-flight selection (CheckLLMPolicyLimits)
99 // and the post-flight consumption write (RecordLLMUsage). Optional — when
100 // nil both RPCs return Unimplemented.
101 agentNetworkLimits AgentNetworkLimitsService
102 // ProxyController for service updates and cluster management
103 proxyController proxy.Controller
104
105 // Manager for proxy connections
106 proxyManager proxy.Manager
107
108 // Manager for peers
109 peersManager peers.Manager
110
111 // Manager for users
112 usersManager users.Manager
113
114 // Manager for IdP-enriched user data (may be nil when no IdP is configured)
115 idpManager idp.Manager
116
117 // Store for one-time authentication tokens
118 tokenStore *OneTimeTokenStore
119
120 // Checker for proxy access token validity
121 tokenChecker ProxyTokenChecker
122
123 // OIDC configuration for proxy authentication
124 oidcConfig ProxyOIDCConfig
125
126 // Store for PKCE verifiers
127 pkceVerifierStore *PKCEVerifierStore
128
129 // tokenTTL is the lifetime of one-time tokens generated for proxy
130 // authentication. Defaults to defaultProxyTokenTTL when zero.
131 tokenTTL time.Duration
132
133 // snapshotBatchSize is the number of mappings per gRPC message during
134 // initial snapshot delivery. Configurable via NB_PROXY_SNAPSHOT_BATCH_SIZE.
135 snapshotBatchSize int
136
137 cancel context.CancelFunc
138}
139

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected