rest_client

package
v1.1.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL