Documentation ¶
Index ¶
- func SetInstance(typeClient string)
- type Client
- type ClientWebPaySuccess
- func (client ClientWebPaySuccess) Delete(endpoint string, body map[string]interface{}) (*resty.Response, error)
- func (client ClientWebPaySuccess) Get(endpoint string) (*resty.Response, error)
- func (client ClientWebPaySuccess) Post(endpoint string, body map[string]interface{}) (*resty.Response, error)
- func (client ClientWebPaySuccess) Put(endpoint string) (*resty.Response, error)
- type HttpClient
- func (client HttpClient) Delete(endpoint string, body map[string]interface{}) (*resty.Response, error)
- func (client HttpClient) Get(endpoint string) (*resty.Response, error)
- func (client HttpClient) Post(endpoint string, body map[string]interface{}) (*resty.Response, error)
- func (client HttpClient) Put(endpoint string) (*resty.Response, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetInstance ¶
func SetInstance(typeClient string)
SetInstance set instance singleton the HttpClient
Types ¶
type Client ¶
type Client interface { Get(endpoint string) (*resty.Response, error) Post(endpoint string, body map[string]interface{}) (*resty.Response, error) Put(endpoint string) (*resty.Response, error) Delete(endpoint string, body map[string]interface{}) (*resty.Response, error) }
Client interface to rules to client
type ClientWebPaySuccess ¶
type ClientWebPaySuccess struct {
Environment *environment.Environment
}
func (ClientWebPaySuccess) Delete ¶
func (client ClientWebPaySuccess) Delete(endpoint string, body map[string]interface{}) (*resty.Response, error)
Delete http delete for client
func (ClientWebPaySuccess) Get ¶
func (client ClientWebPaySuccess) Get(endpoint string) (*resty.Response, error)
Get http het method for client
func (ClientWebPaySuccess) Post ¶
func (client ClientWebPaySuccess) Post(endpoint string, body map[string]interface{}) (*resty.Response, error)
Post http post for client
func (ClientWebPaySuccess) Put ¶
func (client ClientWebPaySuccess) Put(endpoint string) (*resty.Response, error)
Put http put method for client
type HttpClient ¶
type HttpClient struct {
Environment *environment.Environment
}
HttpClient client
func (HttpClient) Delete ¶
func (client HttpClient) Delete(endpoint string, body map[string]interface{}) (*resty.Response, error)
Delete http delete method for client
func (HttpClient) Get ¶
func (client HttpClient) Get(endpoint string) (*resty.Response, error)
Get http get method for client
func (HttpClient) Post ¶
func (client HttpClient) Post(endpoint string, body map[string]interface{}) (*resty.Response, error)
Post http post for client
func (HttpClient) Put ¶
func (client HttpClient) Put(endpoint string) (*resty.Response, error)
Put http put method for client
Click to show internal directories.
Click to hide internal directories.