Documentation ¶
Index ¶
- Constants
- func NewTransport(accessKey, secretKey string, options ...TransportOption) (http.RoundTripper, error)
- func WrapClient(name string, client *Client) giraffe.Client
- func WrapClientWithScheme(name string, scheme string, client *Client) giraffe.Client
- type ApiKey
- type Client
- type ClientOption
- type Middleware
- type Request
- type Signer
- type TransportOption
Constants ¶
View Source
const FIELDMASK = "XXX_RestFieldMask"
Variables ¶
This section is empty.
Functions ¶
func NewTransport ¶
func NewTransport(accessKey, secretKey string, options ...TransportOption) (http.RoundTripper, error)
func WrapClient ¶
func WrapClientWithScheme ¶ added in v0.0.4
Types ¶
type ClientOption ¶
type ClientOption func(*Client)
func WithClient ¶
func WithClient(client *http.Client) ClientOption
type Middleware ¶
type Middleware struct {
restv2.Middleware
}
func (*Middleware) NewRequest ¶
func (m *Middleware) NewRequest(rule giraffe.HttpRule, in interface{}) (*http.Request, error)
func (*Middleware) ParseResponse ¶
func (m *Middleware) ParseResponse(rule giraffe.HttpRule, resp *http.Response, out interface{}) error
type TransportOption ¶
type TransportOption func(*transport)
func RoundTripper ¶
func RoundTripper(rt http.RoundTripper) TransportOption
Click to show internal directories.
Click to hide internal directories.