Skip to content

Instantly share code, notes, and snippets.

@gavrie
Created May 17, 2016 12:51
Show Gist options
  • Save gavrie/87fcec1c8f31ce16d4ab9c3709b56c68 to your computer and use it in GitHub Desktop.
Save gavrie/87fcec1c8f31ce16d4ab9c3709b56c68 to your computer and use it in GitHub Desktop.

Revisions

  1. gavrie created this gist May 17, 2016.
    4 changes: 4 additions & 0 deletions retry_interface.go
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    type retrier interface {
    nextTimeout() time.Duration
    keepTrying() bool
    }