Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MockTestHelper ¶
Types ¶
type BackoffSettings ¶
type Client ¶
Client is what you need to create and initialize in Configure. It will be passed for each resource fetcher.
type Paginator ¶
type Paginator struct {
// contains filtered or unexported fields
}
Paginator implements the http.RoundTripper interface to intercept pagination information not supported by the official Heroku SDK. It injects this information into the request context so that resolvers can make additional calls, if necessary.
func NewPaginator ¶
func NewPaginator(t http.RoundTripper) Paginator
NewPaginator returns a new paginator with the given RoundTripper
func (Paginator) RoundTrip ¶
RoundTrip is an implementation of the http.RoundTripper function that checks the status code and adds pagination information to the context accordingly. This is only done because the official SDK lacks support for pagination (see: https://github.com/heroku/heroku-go/issues/56)
type Spec ¶
type Spec struct { Token string `yaml:"token,omitempty" json:"token"` BaseDelay int `yaml:"backoff_base_delay,omitempty" hcl:"backoff_base_delay,optional" default:"-1"` Multiplier float64 `yaml:"backoff_multiplier,omitempty" hcl:"backoff_multiplier,optional"` MaxDelay int `yaml:"backoff_max_delay,omitempty" hcl:"backoff_max_delay,optional"` Jitter float64 `yaml:"backoff_jitter,omitempty" hcl:"backoff_jitter,optional"` MinConnectTimeout int `yaml:"backoff_min_connect_timeout,omitempty" hcl:"backoff_min_connect_timeout,optional"` MaxRetries int `yaml:"max_retries,omitempty" hcl:"max_retries,optional" default:"3"` }
Spec defines Heroku source plugin Spec
func (Spec) Backoff ¶
func (c Spec) Backoff() BackoffSettings
func (Spec) ClientOptions ¶
func (c Spec) ClientOptions() []option.ClientOption
type TestOptions ¶
type TestOptions struct{}