Documentation ¶
Index ¶
- Constants
- type Auth
- type FileUploadParams
- type Request
- func (request *Request) AddHeaders(headers map[string]string)
- func (request *Request) Delete(path string, queryParams map[string]interface{}, ...) (map[string]interface{}, error)
- func (request *Request) File(path string, params FileUploadParams, extraHeaders map[string]string) (map[string]interface{}, error)
- func (request *Request) Get(path string, queryParams map[string]interface{}, ...) (map[string]interface{}, error)
- func (request *Request) Patch(path string, payload map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)
- func (request *Request) Post(path string, payload map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)
- func (request *Request) Put(path string, payload map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)
- func (request *Request) SetTimeout(timeout int16)
Constants ¶
View Source
const TIMEOUT = 10
TIMEOUT ... client timeout
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileUploadParams ¶ added in v1.2.0
type Request ¶
type Request struct { Auth Auth HTTPClient *http.Client Headers map[string]string Version string SDKName string AppDetails map[string]string BaseURL string }
Request encapsulates all the information required to make an HTTP request to Razorpay's APIs.
func (*Request) AddHeaders ¶
AddHeaders adds header to the Request object
func (*Request) Delete ¶
func (request *Request) Delete(path string, queryParams map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)
Delete ...
func (*Request) Get ¶
func (request *Request) Get(path string, queryParams map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)
Get ...
func (*Request) Patch ¶
func (request *Request) Patch(path string, payload map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)
Patch ...
func (*Request) Post ¶
func (request *Request) Post(path string, payload map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)
Post ...
Click to show internal directories.
Click to hide internal directories.