Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPClient ¶
type HTTPClient struct {
*httpclient.Client
// contains filtered or unexported fields
}
func NewHTTPClient ¶
func NewHTTPClient(opts ...HTTPClientOpt) *HTTPClient
func (*HTTPClient) MakeRequest ¶
func (c *HTTPClient) MakeRequest(methodName string, opts ...httpclient.ReqOpt) (*http.Request, error)
type HTTPClientCfg ¶
type HTTPClientCfg struct {
// contains filtered or unexported fields
}
type HTTPClientOpt ¶
type HTTPClientOpt func(*HTTPClient)
func Debug ¶ added in v0.3.1
func Debug(v bool) HTTPClientOpt
func Host ¶
func Host(host string) HTTPClientOpt
func PackageName ¶
func PackageName(pkg string) HTTPClientOpt
func Schema ¶
func Schema(schema string) HTTPClientOpt
func ServiceName ¶
func ServiceName(svc string) HTTPClientOpt
func TLSConfig ¶ added in v0.3.1
func TLSConfig(opts ...tlsconfig.Option) HTTPClientOpt
func Version ¶
func Version(version string) HTTPClientOpt
type PBResponseFunc ¶
type PBResponseFunc func(proto.Message) httpclient.ResponseProcessor
var PBResponse PBResponseFunc
type PBResponsor ¶
type PBResponsor struct {
// contains filtered or unexported fields
}
type URIFormatFunc ¶
var URIFormat URIFormatFunc
Click to show internal directories.
Click to hide internal directories.