Skip to content

Commit

Permalink
Merge pull request #24 from J7mbo/bugfix/#21-Retrier-interface-invalid
Browse files Browse the repository at this point in the history
[#23] - Retrier interface now matches struct as expected
  • Loading branch information
J7mbo authored Apr 15, 2019
2 parents d2d56df + a8e9e11 commit 77ca82c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Retrier.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package MethodCallRetrier

import "reflect"

/* Represents an object capable of retrying a call on an object X times after receiving an error. */
type Retrier interface {
ExecuteWithRetry(object interface{}, methodName string, args ...interface{}) ([]reflect.Value, []error)
ExecuteWithRetry(
object interface{}, methodName string, args ...interface{},
) (results []interface{}, errs []error, wasSuccesful bool)

ExecuteFuncWithRetry(function func() error) []error
ExecuteFuncWithRetry(function func() error) (errs []error, wasSuccessful bool)
}

0 comments on commit 77ca82c

Please sign in to comment.