docs: document new option

This commit is contained in:
Manuel de la Peña
2025-04-09 12:58:38 +02:00
parent 33b00bdd97
commit b1026d4553

View File

@@ -160,6 +160,11 @@ type Config struct {
//
// Optional. Default is false
Reset bool
// DisableInitialHostLookup disables the initial host lookup
//
// Optional. Default is false
DisableInitialHostLookup bool
}
```
@@ -167,15 +172,16 @@ type Config struct {
```go
// ConfigDefault is the default config
var ConfigDefault = Config{
Session: nil,
Keyspace: "fiber",
Hosts: []string{"127.0.0.1"},
Username: "",
Password: "",
Port: 9042,
Table: "fiber_storage",
Consistency: "LOCAL_ONE",
SslOpts: nil,
Reset: false,
Session: nil,
Keyspace: "fiber",
Hosts: []string{"127.0.0.1"},
Username: "",
Password: "",
Port: 9042,
Table: "fiber_storage",
Consistency: "LOCAL_ONE",
SslOpts: nil,
Reset: false,
DisableInitialHostLookup: false,
}
```