Versions in this module Expand all Collapse all v3 v3.1.0 Sep 26, 2024 v3.0.0 Apr 2, 2024 Changes in this version + func ConvertInterfaceToByteAndMap(Body interface{}) ([]byte, map[string]interface{}, error) + func CreateMultiPartFormPayload(file *os.File, reqBodyMap map[string]interface{}) (*bytes.Reader, string, error) + func EncodeToBase64(val string) string + func GetRequestedDateTime() string + func HttpRequest(method string, apiUrl string, queryParams map[string]string, data interface{}, ...) ([]byte, error) + func MapToURLEncodedString(valMap map[string]string) (encodedData string) + func MapToUrlString(valMap map[string]string) string + type FDKError struct + Code string + Exception string + Info string + Message string + Meta objx.Map + RequestID string + StackTrace string + Status int + func NewFDKError(message string) *FDKError + func (f *FDKError) Error() string + func (f *FDKError) SetRequestID(requestID string) *FDKError + func (f *FDKError) SetStatus(httpStatus int) *FDKError + func (f *FDKError) String() string + type Paginator struct + HasNextPage bool + Next func() (interface{}, error) + NextID string + PageNo float64 + func NewPaginator(pageType string) *Paginator + func (p *Paginator) HasNext() bool + func (p *Paginator) SetPaginator(hasNext bool, pageNo int, nextID string) + type SignatureModel struct + func NewSignatureModel(domain string, method string, url string, queryString string, ...) *SignatureModel + func (model *SignatureModel) AddSignatureToHeaders(signQuery bool) (map[string]string, error)