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

Method buildInfo

enterprise/wsproxy/wsproxy.go:618–626  ·  view source on GitHub ↗
(rw http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

616}
617
618func (s *Server) buildInfo(rw http.ResponseWriter, r *http.Request) {
619 httpapi.Write(r.Context(), rw, http.StatusOK, codersdk.BuildInfoResponse{
620 ExternalURL: buildinfo.ExternalURL(),
621 Version: buildinfo.Version(),
622 AgentAPIVersion: coderd.AgentAPIVersionREST,
623 DashboardURL: s.DashboardURL.String(),
624 WorkspaceProxy: true,
625 })
626}
627
628// healthReport is a more thorough health check than the '/healthz' endpoint.
629// This endpoint not only responds if the server is running, but can do some

Callers

nothing calls this directly

Calls 5

WriteFunction · 0.92
ExternalURLFunction · 0.92
VersionFunction · 0.92
ContextMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected