 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultRetryer ¶ added in v0.9.5
type DefaultRetryer struct {
	*Service
}
    DefaultRetryer implements basic retry logic using exponential backoff for most services. If you want to implement custom retry logic, implement the request.Retryer interface or create a structure type that composes this struct and override the specific methods. For example, to override only the MaxRetries method:
		type retryer struct {
     service.DefaultRetryer
   }
   // This implementation always has 100 max retries
   func (d retryer) MaxRetries() uint { return 100 }
func (DefaultRetryer) MaxRetries ¶ added in v0.9.5
func (d DefaultRetryer) MaxRetries() uint
MaxRetries returns the number of maximum returns the service will use to make an individual API request.
func (DefaultRetryer) RetryRules ¶ added in v0.9.5
func (d DefaultRetryer) RetryRules(r *request.Request) time.Duration
RetryRules returns the delay duration before retrying this request again
func (DefaultRetryer) ShouldRetry ¶ added in v0.9.5
func (d DefaultRetryer) ShouldRetry(r *request.Request) bool
ShouldRetry returns if the request should be retried.
type Service ¶
type Service struct {
	serviceinfo.ServiceInfo
	request.Retryer
	DefaultMaxRetries uint
	Handlers          request.Handlers
}
    A Service implements the base service request and response handling used by all services.
func (*Service) AddDebugHandlers ¶
func (s *Service) AddDebugHandlers()
AddDebugHandlers injects debug logging handlers into the service to log request debug information.