| 777 | } |
| 778 | |
| 779 | type API struct { |
| 780 | AGPL *coderd.API |
| 781 | *Options |
| 782 | |
| 783 | // ctx is canceled immediately on shutdown, it can be used to abort |
| 784 | // interruptible tasks. |
| 785 | ctx context.Context |
| 786 | cancel context.CancelFunc |
| 787 | |
| 788 | // Detects multiple Coder replicas running at the same time. |
| 789 | replicaManager *replicasync.Manager |
| 790 | // Meshes DERP connections from multiple replicas. |
| 791 | derpMesh *derpmesh.Mesh |
| 792 | // ProxyHealth checks the reachability of all workspace proxies. |
| 793 | ProxyHealth *proxyhealth.ProxyHealth |
| 794 | |
| 795 | provisionerDaemonAuth *provisionerDaemonAuth |
| 796 | |
| 797 | licenseMetricsCollector *license.MetricsCollector |
| 798 | tailnetService *tailnet.ClientService |
| 799 | |
| 800 | aibridgeproxydHandler http.Handler |
| 801 | aiSeatTracker *aiseats.SeatTracker |
| 802 | } |
| 803 | |
| 804 | // writeEntitlementWarningsHeader writes the entitlement warnings to the response header |
| 805 | // for all authenticated users with roles. If there are no warnings, this header will not be written. |
nothing calls this directly
no outgoing calls
no test coverage detected