interceptor

package
v1.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package interceptor handles oauth signing of every http request before sending.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHttpClient

func GetHttpClient(consumerKey, filePath, password string) (*http.Client, error)

GetHttpClient provides the http.Client having capability to intercept the http call and add the generated oauth1.0a header in each request. consumerKey: provide the consumer key received from mastercard developer portal filePath: a file path of a RSA private key in PKCS#12 format password: a password to read the RSA private key from the given file path

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL