SetTimeout sets the timeout member of the QueryOptions struct
(timeout int)
| 110 | |
| 111 | // SetTimeout sets the timeout member of the QueryOptions struct |
| 112 | func (options *QueryOptions) SetTimeout(timeout int) *QueryOptions { |
| 113 | options.timeout = timeout |
| 114 | return options |
| 115 | } |
| 116 | |
| 117 | // GetTimeout retrieves the timeout of the QueryOptions struct |
| 118 | func (options *QueryOptions) GetTimeout() int { |