MCPcopy Create free account
hub / github.com/coder/coder / DefaultDRPCOptions

Function DefaultDRPCOptions

codersdk/drpcsdk/transport.go:23–32  ·  view source on GitHub ↗
(options *drpcmanager.Options)

Source from the content-addressed store, hash-verified

21)
22
23func DefaultDRPCOptions(options *drpcmanager.Options) drpcmanager.Options {
24 if options == nil {
25 options = &drpcmanager.Options{}
26 }
27
28 if options.Reader.MaximumBufferSize == 0 {
29 options.Reader.MaximumBufferSize = MaxMessageSize
30 }
31 return *options
32}
33
34// MultiplexedConn returns a multiplexed dRPC connection from a yamux Session.
35func MultiplexedConn(session *yamux.Session) drpc.Conn {

Callers 15

ServerMethod · 0.92
TestProvisionerSDKFunction · 0.92
ServeFunction · 0.92
NewClientServiceFunction · 0.92
handleConnMethod · 0.92
NewServerFunction · 0.92
NewClientWithSecretsFunction · 0.92
InvokeMethod · 0.85

Calls

no outgoing calls

Tested by 2

TestProvisionerSDKFunction · 0.74