| 97 | } |
| 98 | |
| 99 | type server struct { |
| 100 | apiVersion string |
| 101 | // lifecycleCtx must be tied to the API server's lifecycle |
| 102 | // as when the API server shuts down, we want to cancel any |
| 103 | // long-running operations. |
| 104 | lifecycleCtx context.Context |
| 105 | AccessURL *url.URL |
| 106 | ID uuid.UUID |
| 107 | OrganizationID uuid.UUID |
| 108 | Logger slog.Logger |
| 109 | Provisioners []database.ProvisionerType |
| 110 | ExternalAuthConfigs []*externalauth.Config |
| 111 | Tags Tags |
| 112 | Database database.Store |
| 113 | Pubsub pubsub.Pubsub |
| 114 | Acquirer *Acquirer |
| 115 | Telemetry telemetry.Reporter |
| 116 | Tracer trace.Tracer |
| 117 | QuotaCommitter *atomic.Pointer[proto.QuotaCommitter] |
| 118 | Auditor *atomic.Pointer[audit.Auditor] |
| 119 | TemplateScheduleStore *atomic.Pointer[schedule.TemplateScheduleStore] |
| 120 | UserQuietHoursScheduleStore *atomic.Pointer[schedule.UserQuietHoursScheduleStore] |
| 121 | DeploymentValues *codersdk.DeploymentValues |
| 122 | NotificationsEnqueuer notifications.Enqueuer |
| 123 | PrebuildsOrchestrator *atomic.Pointer[prebuilds.ReconciliationOrchestrator] |
| 124 | UsageInserter *atomic.Pointer[usage.Inserter] |
| 125 | AISeatTracker aiseats.SeatTracker |
| 126 | Experiments codersdk.Experiments |
| 127 | |
| 128 | OIDCConfig promoauth.OAuth2Config |
| 129 | |
| 130 | Clock quartz.Clock |
| 131 | |
| 132 | acquireJobLongPollDur time.Duration |
| 133 | |
| 134 | heartbeatInterval time.Duration |
| 135 | heartbeatFn func(ctx context.Context) error |
| 136 | |
| 137 | metrics *Metrics |
| 138 | } |
| 139 | |
| 140 | // We use the null byte (0x00) in generating a canonical map key for tags, so |
| 141 | // it cannot be used in the tag keys or values. |
nothing calls this directly
no outgoing calls
no test coverage detected