Documentation
¶
Index ¶
- Constants
- func ConvertStructToMap(input interface{}) (map[string]interface{}, error)
- func GetBaseURL(cc string) string
- func GetBaseURLFromAuthFunc(f AuthFunc) string
- func GetDefaultHTTPClient() *http.Client
- func IsJSONResponseOK(responseStatus *common.Status) bool
- type AuthFunc
- type BodyMock
- type BulkInput
- type Client
- type ClientMock
Constants ¶
View Source
const ( //MaxIdleConns for Erply API MaxIdleConns = 25 //MaxConnsPerHost for Erply API MaxConnsPerHost = 25 )
View Source
const (
BaseUrl = "https://%s.erply.com/api/"
)
Variables ¶
This section is empty.
Functions ¶
func ConvertStructToMap ¶ added in v1.4.0
func GetBaseURL ¶
func GetBaseURLFromAuthFunc ¶ added in v1.3.1
func GetDefaultHTTPClient ¶
func IsJSONResponseOK ¶
Types ¶
type BodyMock ¶
BodyMock implements resp.Body
func NewMockFromStr ¶
NewFromStr creates BodyMock from a string
func NewMockFromStruct ¶
func NewMockFromStruct(input interface{}) *BodyMock
NewFromStruct creates BodyMock from a struct converted to json or string
type Client ¶
type Client struct {
Url string
// contains filtered or unexported fields
}
func (*Client) SendRequest ¶
Click to show internal directories.
Click to hide internal directories.