MCPcopy Index your code
hub / github.com/coder/coder / Server

Struct Server

provisionerd/provisionerd.go:120–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120type Server struct {
121 opts *Options
122 tracer trace.Tracer
123
124 clientDialer Dialer
125 clientCh chan proto.DRPCProvisionerDaemonClient
126
127 wg sync.WaitGroup
128
129 // initConnectionCh will receive when the daemon connects to coderd for the
130 // first time.
131 initConnectionCh chan struct{}
132 initConnectionOnce sync.Once
133
134 // mutex protects all subsequent fields
135 mutex sync.Mutex
136 // closeContext is canceled when we start closing.
137 closeContext context.Context
138 closeCancel context.CancelFunc
139 // closeError stores the error when closing to return to subsequent callers
140 closeError error
141 // closingB is set to true when we start closing
142 closingB bool
143 // closedCh will receive when we complete closing
144 closedCh chan struct{}
145 // shuttingDownB is set to true when we start graceful shutdown
146 shuttingDownB bool
147 // shuttingDownCh will receive when we start graceful shutdown
148 shuttingDownCh chan struct{}
149 // acquireDoneCh will receive when the acquireLoop exits
150 acquireDoneCh chan struct{}
151 activeJob *runner.Runner
152 externalProvisioner bool
153}
154
155type Metrics struct {
156 Runner runner.Metrics

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected