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