Debian Codegraph @

pkg/types/sender_options.go

raw symbols SCIP
1 package types
2
3 import "time"
4
5 // SenderOptions controls creation of senders and routers.
6 //
7 // HTTPClient, if non-nil, will be used for all outbound HTTP requests
8 // made by the resulting sender/router. This allows callers to supply
9 // custom transports, dialers, TLS configuration, timeouts, etc.
10 //
11 // Timeout, if > 0, overrides the default per-service timeout.
12 type SenderOptions struct {
13 // HTTPClient is the client used for all HTTP operations.
14 // If nil, a default client with reasonable settings is used.
15 HTTPClient HTTPClient
16
17 // Timeout overrides the default operation timeout when > 0.
18 Timeout time.Duration
19 }