Versions in this module Expand all Collapse all v0 v0.7.0 Dec 22, 2014 Changes in this version + type Attempt interface + GetDuration func() time.Duration + GetEndpoint func() endpoint.Endpoint + GetError func() error + GetResponse func() *http.Response + type BaseAttempt struct + Duration time.Duration + Endpoint endpoint.Endpoint + Error error + Response *http.Response + func (ba *BaseAttempt) GetDuration() time.Duration + func (ba *BaseAttempt) GetEndpoint() endpoint.Endpoint + func (ba *BaseAttempt) GetError() error + func (ba *BaseAttempt) GetResponse() *http.Response + type BaseRequest struct + Attempts []Attempt + Body netutils.MultiReader + HttpRequest *http.Request + Id int64 + func NewBaseRequest(r *http.Request, id int64, body netutils.MultiReader) *BaseRequest + func (br *BaseRequest) AddAttempt(a Attempt) + func (br *BaseRequest) DeleteUserData(key string) + func (br *BaseRequest) GetAttempts() []Attempt + func (br *BaseRequest) GetBody() netutils.MultiReader + func (br *BaseRequest) GetHttpRequest() *http.Request + func (br *BaseRequest) GetId() int64 + func (br *BaseRequest) GetLastAttempt() Attempt + func (br *BaseRequest) GetUserData(key string) (i interface{}, b bool) + func (br *BaseRequest) SetBody(b netutils.MultiReader) + func (br *BaseRequest) SetHttpRequest(r *http.Request) + func (br *BaseRequest) SetUserData(key string, baton interface{}) + func (br *BaseRequest) String() string + type Request interface + AddAttempt func(Attempt) + DeleteUserData func(key string) + GetAttempts func() []Attempt + GetBody func() netutils.MultiReader + GetHttpRequest func() *http.Request + GetId func() int64 + GetLastAttempt func() Attempt + GetUserData func(key string) (interface{}, bool) + SetBody func(netutils.MultiReader) + SetHttpRequest func(*http.Request) + SetUserData func(key string, baton interface{}) + String func() string