NewQueryOptions instantiates a new QueryOptions struct.
()
| 103 | |
| 104 | // NewQueryOptions instantiates a new QueryOptions struct. |
| 105 | func NewQueryOptions() *QueryOptions { |
| 106 | return &QueryOptions{ |
| 107 | timeout: -1, |
| 108 | } |
| 109 | } |
| 110 | |
| 111 | // SetTimeout sets the timeout member of the QueryOptions struct |
| 112 | func (options *QueryOptions) SetTimeout(timeout int) *QueryOptions { |