Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDefaultClient ¶
func NewDefaultClient(target ...string) (cloudevents.Client, error)
func NewDefaultClientGivenHttpTransport ¶ added in v0.10.0
func NewDefaultClientGivenHttpTransport(t *cloudevents.HTTPTransport, connectionArgs *ConnectionArgs, opts ...client.Option) (cloudevents.Client, error)
NewDefaultClientGivenHttpTransport creates a new CloudEvents client using the provided cloudevents HTTP transport. Note that it does modify the provided cloudevents HTTP Transport by adding tracing to its Client and different connection options, in case they are specified.
Types ¶
type ConnectionArgs ¶ added in v0.10.0
type ConnectionArgs struct { // MaxIdleConns refers to the max idle connections, as in net/http/transport. MaxIdleConns int // MaxIdleConnsPerHost refers to the max idle connections per host, as in net/http/transport. MaxIdleConnsPerHost int }
ConnectionArgs allow to configure connection parameters to the underlying HTTP Client transport.
Click to show internal directories.
Click to hide internal directories.