Documentation
¶
Index ¶
- type RestClient
- func (this *RestClient) Get(rlog logrus.FieldLogger, url string, pathParams map[string]string, ...) (*resty.Response, error)
- func (this *RestClient) Get_(rlog logrus.FieldLogger, url string, pathParams map[string]string, ...) (*resty.Response, error)
- func (this *RestClient) Post(rlog logrus.FieldLogger, url string, pathParams map[string]string, ...) (*resty.Response, error)
- func (this *RestClient) Post_(rlog logrus.FieldLogger, url string, pathParams map[string]string, ...) (*resty.Response, error)
- func (this *RestClient) Request(rlog logrus.FieldLogger, method string, url string, ...) (*resty.Response, error)
- func (this *RestClient) RequiredAuthorization() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RestClient ¶
type RestClient struct { OAuthClient *oaut_client.OAuthClient HttpClient *resty.Client Log *logger.Logger AuthScope string }
func (*RestClient) Get ¶
func (this *RestClient) Get( rlog logrus.FieldLogger, url string, pathParams map[string]string, body interface{}, ) ( *resty.Response, error, )
func (*RestClient) Get_ ¶
func (this *RestClient) Get_( rlog logrus.FieldLogger, url string, pathParams map[string]string, body interface{}, mdc *utils2.MDC, ) ( *resty.Response, error, )
func (*RestClient) Post ¶
func (this *RestClient) Post( rlog logrus.FieldLogger, url string, pathParams map[string]string, body interface{}, ) ( *resty.Response, error, )
func (*RestClient) Post_ ¶
func (this *RestClient) Post_( rlog logrus.FieldLogger, url string, pathParams map[string]string, body interface{}, mdc *utils2.MDC, ) ( *resty.Response, error, )
func (*RestClient) Request ¶
func (this *RestClient) Request( rlog logrus.FieldLogger, method string, url string, pathParams map[string]string, body interface{}, mdc *utils2.MDC, ) ( *resty.Response, error, )
func (*RestClient) RequiredAuthorization ¶
func (this *RestClient) RequiredAuthorization() bool
Click to show internal directories.
Click to hide internal directories.