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

Method Client

coderd/aibridged/aibridged.go:134–141  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

132}
133
134func (s *Server) Client() (DRPCClient, error) {
135 select {
136 case <-s.lifecycleCtx.Done():
137 return nil, xerrors.New("context closed")
138 case client := <-s.clientCh:
139 return client, nil
140 }
141}
142
143// GetRequestHandler retrieves a (possibly reused) [*aibridge.RequestBridge] from the pool, for the given user.
144func (s *Server) GetRequestHandler(ctx context.Context, req Request) (http.Handler, error) {

Calls 2

NewMethod · 0.65
DoneMethod · 0.45