Documentation ¶
Index ¶
- Constants
- type AfterRequestPlugin
- type BeforeRequestPlugin
- type Client
- type DataResponse
- type DefaultRequest
- func (r *DefaultRequest) GetBody() interface{}
- func (r *DefaultRequest) GetCodec() codec.Codec
- func (r *DefaultRequest) GetHeader() http.Header
- func (r *DefaultRequest) GetMethod() string
- func (r *DefaultRequest) GetPath() string
- func (r *DefaultRequest) GetQuery() url.Values
- func (r *DefaultRequest) GetServiceName() string
- func (r *DefaultRequest) SetHeader(h http.Header)
- type LogBeforePlugin
- type MultiFormFile
- type MultiRequest
- func (r *MultiRequest) Decode(in io.Reader, dst interface{}) error
- func (r *MultiRequest) Encode(_ interface{}) (io.Reader, error)
- func (r *MultiRequest) GetBody() interface{}
- func (r *MultiRequest) GetCodec() codec.Codec
- func (r *MultiRequest) GetHeader() http.Header
- func (r *MultiRequest) GetMethod() string
- func (r *MultiRequest) GetPath() string
- func (r *MultiRequest) GetQuery() url.Values
- func (r *MultiRequest) GetServiceName() string
- func (r *MultiRequest) GetValues() url.Values
- func (r *MultiRequest) SetHeader(h http.Header)
- type OpentelemetryBeforePlugin
- type OpentracingBeforePlugin
- type Request
- type Response
- type TimeoutBeforePlugin
Constants ¶
View Source
const ( HeaderContentTypeJSON = "application/json" HeaderContentTypeFormURLEncoded = "application/x-www-form-urlencoded" )
View Source
const (
HeaderContentType = "Content-Type"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AfterRequestPlugin ¶
type BeforeRequestPlugin ¶
type DataResponse ¶ added in v1.0.9
type DataResponse struct { Body interface{} Codec codec.Codec // contains filtered or unexported fields }
func (*DataResponse) GetBody ¶ added in v1.0.9
func (resp *DataResponse) GetBody() interface{}
func (*DataResponse) GetResponse ¶ added in v1.0.9
func (resp *DataResponse) GetResponse() *http.Response
func (*DataResponse) HandleResponse ¶ added in v1.0.9
type DefaultRequest ¶ added in v1.0.6
type DefaultRequest struct { ServiceName string Path string Query url.Values Method string Header http.Header Body interface{} Codec codec.Codec }
func (*DefaultRequest) GetBody ¶ added in v1.0.6
func (r *DefaultRequest) GetBody() interface{}
func (*DefaultRequest) GetCodec ¶ added in v1.0.6
func (r *DefaultRequest) GetCodec() codec.Codec
func (*DefaultRequest) GetHeader ¶ added in v1.0.6
func (r *DefaultRequest) GetHeader() http.Header
func (*DefaultRequest) GetMethod ¶ added in v1.0.6
func (r *DefaultRequest) GetMethod() string
func (*DefaultRequest) GetPath ¶ added in v1.0.6
func (r *DefaultRequest) GetPath() string
func (*DefaultRequest) GetQuery ¶ added in v1.0.6
func (r *DefaultRequest) GetQuery() url.Values
func (*DefaultRequest) GetServiceName ¶ added in v1.0.6
func (r *DefaultRequest) GetServiceName() string
func (*DefaultRequest) SetHeader ¶ added in v1.0.6
func (r *DefaultRequest) SetHeader(h http.Header)
type LogBeforePlugin ¶ added in v1.0.11
type LogBeforePlugin struct{}
func (*LogBeforePlugin) Name ¶ added in v1.0.11
func (*LogBeforePlugin) Name() string
type MultiFormFile ¶ added in v1.0.6
type MultiFormFile struct { Content io.ReadCloser Name string }
type MultiRequest ¶ added in v1.0.6
type MultiRequest struct { ServiceName string Path string Query url.Values Method string Header http.Header Values url.Values Files map[string]*MultiFormFile }
func (*MultiRequest) Decode ¶ added in v1.0.6
func (r *MultiRequest) Decode(in io.Reader, dst interface{}) error
func (*MultiRequest) Encode ¶ added in v1.0.6
func (r *MultiRequest) Encode(_ interface{}) (io.Reader, error)
func (*MultiRequest) GetBody ¶ added in v1.0.6
func (r *MultiRequest) GetBody() interface{}
func (*MultiRequest) GetCodec ¶ added in v1.0.6
func (r *MultiRequest) GetCodec() codec.Codec
func (*MultiRequest) GetHeader ¶ added in v1.0.6
func (r *MultiRequest) GetHeader() http.Header
func (*MultiRequest) GetMethod ¶ added in v1.0.6
func (r *MultiRequest) GetMethod() string
func (*MultiRequest) GetPath ¶ added in v1.0.6
func (r *MultiRequest) GetPath() string
func (*MultiRequest) GetQuery ¶ added in v1.0.6
func (r *MultiRequest) GetQuery() url.Values
func (*MultiRequest) GetServiceName ¶ added in v1.0.6
func (r *MultiRequest) GetServiceName() string
func (*MultiRequest) GetValues ¶ added in v1.0.6
func (r *MultiRequest) GetValues() url.Values
func (*MultiRequest) SetHeader ¶ added in v1.0.6
func (r *MultiRequest) SetHeader(h http.Header)
type OpentelemetryBeforePlugin ¶ added in v1.0.8
type OpentelemetryBeforePlugin struct{}
func (*OpentelemetryBeforePlugin) Name ¶ added in v1.0.11
func (*OpentelemetryBeforePlugin) Name() string
type OpentracingBeforePlugin ¶ added in v1.0.4
type OpentracingBeforePlugin struct{}
func (*OpentracingBeforePlugin) Name ¶ added in v1.0.11
func (*OpentracingBeforePlugin) Name() string
type TimeoutBeforePlugin ¶ added in v1.0.11
type TimeoutBeforePlugin struct{}
func (*TimeoutBeforePlugin) Name ¶ added in v1.0.11
func (*TimeoutBeforePlugin) Name() string
Click to show internal directories.
Click to hide internal directories.