Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetS3CLient ¶
GetS3CLient creates and configure a new S3 client at each request. TODO optimize
func NewAuthTransport ¶
func NewAuthTransport(rt http.RoundTripper, sdkConfig *cells_sdk.SdkConfig, s3Config *cells_sdk.S3Config) http.RoundTripper
NewAuthTransport takes an http.RoundTripper and returns a new one that adds the JWT Auth header on each request (and optionally logs the additional cost of getting the JWT token)
Types ¶
type DefaultLogger ¶
type DefaultLogger struct { }
DefaultLogger logs basic information about the http responses.
func (DefaultLogger) LogRequest ¶
func (dl DefaultLogger) LogRequest(*http.Request)
LogRequest does nothing.
func (DefaultLogger) LogResponse ¶
func (dl DefaultLogger) LogResponse(req *http.Request, res *http.Response, err error, duration time.Duration)
LogResponse logs path, host, status code and duration in milliseconds.
Click to show internal directories.
Click to hide internal directories.