Created
January 2, 2022 14:20
-
-
Save c9s/30c3fc774beb0ec0000036beaac49e92 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package requestgen | |
import ( | |
"context" | |
"net/http" | |
"net/url" | |
) | |
type AuthenticatedRequestBuilder interface { | |
// NewAuthenticatedRequest builds up the http request for authentication-required endpoints | |
NewAuthenticatedRequest(ctx context.Context, method, refURL string, params url.Values, payload interface{}) (*http.Request, error) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment