k3s/vendor/github.com/canonical/go-dqlite/internal/protocol/config.go
2019-11-10 04:05:59 +00:00

15 lines
399 B
Go

package protocol
import (
"time"
"github.com/Rican7/retry/strategy"
)
// Config holds various configuration parameters for a dqlite client.
type Config struct {
Dial DialFunc // Network dialer.
AttemptTimeout time.Duration // Timeout for each individual Dial attempt.
RetryStrategies []strategy.Strategy // Strategies used for retrying to connect to a leader.
}