Skip to content

Commit

Permalink
added method on single request queryer for testing purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
AlecAivazis committed Feb 20, 2019
1 parent 1ec821c commit 42ac2d2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions queryerNetwork.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ func (q *SingleRequestQueryer) WithHTTPClient(client *http.Client) Queryer {
return q
}

func (q *SingleRequestQueryer) URL() string {
return q.queryer.URL
}

// Query sends the query to the designated url and returns the response.
func (q *SingleRequestQueryer) Query(ctx context.Context, input *QueryInput, receiver interface{}) error {
// the payload
Expand Down

0 comments on commit 42ac2d2

Please sign in to comment.