Skip to content

Instantly share code, notes, and snippets.

@csmith0651
Created May 25, 2016 12:51
Show Gist options
  • Save csmith0651/48dfc02ee21fcae7b55d16c1568e9848 to your computer and use it in GitHub Desktop.
Save csmith0651/48dfc02ee21fcae7b55d16c1568e9848 to your computer and use it in GitHub Desktop.

Revisions

  1. Craig Smith created this gist May 25, 2016.
    8 changes: 8 additions & 0 deletions fetcher_getobject.go
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    func (fetcher *fileFetcher) GetObject(s3Input *s3.GetObjectInput) (*s3.GetObjectOutput, error) {
    // completely ignore the input, just return an object wrapping the fetcher.data
    log.Printf("reading offers from file '%s'", fetcher.file)

    return &s3.GetObjectOutput{
    Body: *(NewMockBody(fetcher.data)),
    }, nil
    }