@@ -8,11 +8,11 @@ import (
88)
99
1010var (
11- _ DoOption = retryOptionsOption (nil )
12- _ DoOption = traceOption {}
11+ _ DoOption = RetryOptionsOption (nil )
12+ _ DoOption = TraceOption {}
1313
14- _ DoTxOption = retryOptionsOption (nil )
15- _ DoTxOption = traceOption {}
14+ _ DoTxOption = RetryOptionsOption (nil )
15+ _ DoTxOption = TraceOption {}
1616 _ DoTxOption = doTxSettingsOption {}
1717)
1818
3535 txSettings tx.Settings
3636 }
3737
38- retryOptionsOption []retry.Option
39- traceOption struct {
38+ RetryOptionsOption []retry.Option
39+ TraceOption struct {
4040 t * trace.Query
4141 }
4242 doTxSettingsOption struct {
@@ -56,19 +56,19 @@ func (s *doTxSettings) TxSettings() tx.Settings {
5656 return s .txSettings
5757}
5858
59- func (opt traceOption ) applyDoOption (s * doSettings ) {
59+ func (opt TraceOption ) applyDoOption (s * doSettings ) {
6060 s .trace = s .trace .Compose (opt .t )
6161}
6262
63- func (opt traceOption ) applyDoTxOption (s * doTxSettings ) {
63+ func (opt TraceOption ) applyDoTxOption (s * doTxSettings ) {
6464 opt .applyDoOption (& s .doSettings )
6565}
6666
67- func (opts retryOptionsOption ) applyDoOption (s * doSettings ) {
67+ func (opts RetryOptionsOption ) applyDoOption (s * doSettings ) {
6868 s .retryOpts = append (s .retryOpts , opts ... )
6969}
7070
71- func (opts retryOptionsOption ) applyDoTxOption (s * doTxSettings ) {
71+ func (opts RetryOptionsOption ) applyDoTxOption (s * doTxSettings ) {
7272 opts .applyDoOption (& s .doSettings )
7373}
7474
@@ -80,19 +80,19 @@ func WithTxSettings(txSettings tx.Settings) doTxSettingsOption {
8080 return doTxSettingsOption {txSettings : txSettings }
8181}
8282
83- func WithIdempotent () retryOptionsOption {
83+ func WithIdempotent () RetryOptionsOption {
8484 return []retry.Option {retry .WithIdempotent (true )}
8585}
8686
87- func WithLabel (lbl string ) retryOptionsOption {
87+ func WithLabel (lbl string ) RetryOptionsOption {
8888 return []retry.Option {retry .WithLabel (lbl )}
8989}
9090
91- func WithTrace (t * trace.Query ) traceOption {
92- return traceOption {t : t }
91+ func WithTrace (t * trace.Query ) TraceOption {
92+ return TraceOption {t : t }
9393}
9494
95- func WithRetryBudget (b budget.Budget ) retryOptionsOption {
95+ func WithRetryBudget (b budget.Budget ) RetryOptionsOption {
9696 return []retry.Option {retry .WithBudget (b )}
9797}
9898
0 commit comments