Documentation ¶
Index ¶
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 ClientWebPaySuccess ¶
type ClientWebPaySuccess struct {
Environment *environment.Environment
}
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) Get ¶
func (client HttpClient) Get(endpoint string) (*resty.Response, error)
Get http het 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.