Documentation
¶
Index ¶
- func GetJsonBody(body interface{}) (buf io.ReadWriter, err error)
- type RateLimitError
- type Request
- func (r *Request) Delete(ctx context.Context, result interface{}, path string) error
- func (r *Request) Execute(ctx context.Context, method string, url string, body io.Reader, ...) error
- func (r *Request) ExecuteRaw(ctx context.Context, method string, url string, body io.Reader, ...) error
- func (r *Request) Get(ctx context.Context, result interface{}, path string, query url.Values) error
- func (r *Request) GetBase(path string) string
- func (r *Request) GetRaw(ctx context.Context, result *bytes.Buffer, path string, query url.Values) error
- func (r *Request) Patch(ctx context.Context, result interface{}, path string, body interface{}) error
- func (r *Request) Post(ctx context.Context, result interface{}, path string, body interface{}) error
- func (r *Request) PostWithOutEncoded(ctx context.Context, result interface{}, path string, body interface{}) error
- func (r *Request) PostWithPlain(ctx context.Context, result interface{}, path string, body io.Reader) error
- func (r *Request) PostWithXWWWFormUrlencoded(ctx context.Context, result interface{}, path string, body interface{}) error
- func (r *Request) SetBaseUrl(url string)
- func (r *Request) SetHeader(k, v string)
- func (r *Request) SetRateLimit(qps float64, burst int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetJsonBody ¶
func GetJsonBody(body interface{}) (buf io.ReadWriter, err error)
Types ¶
type RateLimitError ¶
func (*RateLimitError) Error ¶
func (e *RateLimitError) Error() string
type Request ¶
type Request struct {
// contains filtered or unexported fields
}
func (*Request) ExecuteRaw ¶
func (*Request) PostWithOutEncoded ¶
func (*Request) PostWithPlain ¶
func (*Request) PostWithXWWWFormUrlencoded ¶
func (*Request) SetBaseUrl ¶
func (*Request) SetRateLimit ¶
Click to show internal directories.
Click to hide internal directories.