Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Transport ¶
type Transport struct {
// contains filtered or unexported fields
}
Transport implements the http.RoundTripper interface for use by Staking HTTP clients.
func NewTransport ¶
func NewTransport( roundTripper http.RoundTripper, serviceName string, apiKey *auth.APIKey, ) *Transport
NewTransport returns new transport based on the given inputs.
func (*Transport) RoundTrip ¶
RoundTrip implements the http.RoundTripper interface and wraps the base round tripper with logic to inject the API key auth-based HTTP headers into the request. Reference: https://pkg.go.dev/net/http#RoundTripper
Click to show internal directories.
Click to hide internal directories.