MCPcopy Create free account
hub / github.com/Invisv-Privacy/masque / ClientConfig

Struct ClientConfig

http3/client.go:76–107  ·  view source on GitHub ↗

ClientConfig is options to give when creating a new Client with NewClient(). Note that sane defaults are used when value is not provided/initialized.

Source from the content-addressed store, hash-verified

74// ClientConfig is options to give when creating a new Client with NewClient().
75// Note that sane defaults are used when value is not provided/initialized.
76type ClientConfig struct {
77 // The proxy to connect to in host:port format.
78 ProxyAddr string
79
80 // Maximium number of incoming streams. Typically not an issue, as
81 // the Client will not need to handle incoming connections.
82 MaxIncomingStreams int64
83
84 // Maximum time to keep a proxy stream idle. Defaults to 10 minutes.
85 MaxIdleTimeout time.Duration
86
87 // Timeout for the HTTP client to initally connect to the server.
88 // If a response is not received by the time this occurs, the connection will break.
89 // Defaults to 10 seconds.
90 ConnectTimeout time.Duration
91
92 // Authorization token string to pass in a Proxy-Authorization header when
93 // connecting to a proxy server. Note that the token is formatted into the header
94 // automatically; it is not necessary to provide the full value-string that
95 // would appear in an HTTP header.
96 AuthToken string
97
98 // Pinned cert bytes
99 CertData []byte
100
101 // Set to true to ignore invalid/unverifiable certs provided by the proxy server.
102 // Note that if UseCertSideLoader is true, this value is irrelevant after a
103 // cert file has been loaded with LoadNewCert().
104 Insecure bool
105
106 Logger *slog.Logger
107}
108
109// DatagramStream is an object for Proxied UDP Streams that implements I/O functionality.
110// This object contains information necessary to communicate with the Client

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected