NewOptions returns a new coordinator option.
(timeout time.Duration)
| 60 | |
| 61 | // NewOptions returns a new coordinator option. |
| 62 | func NewOptions(timeout time.Duration) *Options { |
| 63 | return &Options{ |
| 64 | timeout: timeout, |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | // NewOptionsWithCallback returns a new coordinator option with before prepare/commit/rollback callback. |
| 69 | func NewOptionsWithCallback(timeout time.Duration, |
no outgoing calls