Versions in this module Expand all Collapse all v1 v1.0.0 Sep 23, 2023 Changes in this version + const LibraryVersion + func GetNext(baseUrl string, response interface{}, ...) (interface{}, error) + func GetPrevious(baseUrl string, response interface{}, ...) (interface{}, error) + func ReadLimits(pageSize *int, limit *int) int + func UnmarshalFloat32(input *interface{}) (*float32, error) + func UrlWithoutPaginationInfo(baseUrl string, data url.Values) (string, error) + type BaseClient interface + AccountSid func() string + SendRequest func(method string, rawURL string, data url.Values, headers map[string]interface{}) (*http.Response, error) + SetTimeout func(timeout time.Duration) + type Client struct + HTTPClient *http.Client + UserAgentExtensions []string + func (c *Client) AccountSid() string + func (c *Client) SendRequest(method string, rawURL string, data url.Values, headers map[string]interface{}) (*http.Response, error) + func (c *Client) SetTimeout(timeout time.Duration) + type Credentials struct + ApiKey string + ApiUser string + func NewCredentials(apiUser string, apiKey string) *Credentials + type MockBaseClient struct + func NewMockBaseClient(ctrl *gomock.Controller) *MockBaseClient + func (m *MockBaseClient) AccountSid() string + func (m *MockBaseClient) EXPECT() *MockBaseClientMockRecorder + func (m *MockBaseClient) SendRequest(method, rawURL string, data url.Values, headers map[string]interface{}) (*http.Response, error) + func (m *MockBaseClient) SetTimeout(timeout time.Duration) + type MockBaseClientMockRecorder struct + func (mr *MockBaseClientMockRecorder) AccountSid() *gomock.Call + func (mr *MockBaseClientMockRecorder) SendRequest(method, rawURL, data, headers interface{}) *gomock.Call + func (mr *MockBaseClientMockRecorder) SetTimeout(timeout interface{}) *gomock.Call + type ReachRestError struct + Code int + Details map[string]interface{} + Message string + MoreInfo string + Status int + func (err *ReachRestError) Error() string + type RequestHandler struct + Client BaseClient + func NewRequestHandler(client BaseClient) *RequestHandler + func (c *RequestHandler) BuildUrl(rawURL string) (string, error) + func (c *RequestHandler) Delete(path string, nothing url.Values, headers map[string]interface{}) (*http.Response, error) + func (c *RequestHandler) Get(path string, queryData url.Values, headers map[string]interface{}) (*http.Response, error) + func (c *RequestHandler) Post(path string, bodyData url.Values, headers map[string]interface{}) (*http.Response, error) + type RequestValidator struct + func NewRequestValidator(authToken string) RequestValidator + func (rv *RequestValidator) Validate(url string, params map[string]string, expectedSignature string) bool + func (rv *RequestValidator) ValidateBody(url string, body []byte, expectedSignature string) bool