Config represents the configuration structure for customizing the behavior and properties of Olric.
| 165 | |
| 166 | // Config represents the configuration structure for customizing the behavior and properties of Olric. |
| 167 | type Config struct { |
| 168 | // Authentication defines authentication settings, including password protection, for securing access. |
| 169 | Authentication *Authentication |
| 170 | |
| 171 | // Interface denotes a binding interface. It can be used instead of BindAddr |
| 172 | // if the interface is known but not the address. If both are provided, then |
| 173 | // Olric verifies that the interface has the bind address that is provided. |
| 174 | Interface string |
| 175 | |
| 176 | // LogVerbosity denotes the level of message verbosity. The default value |
| 177 | // is 3. Valid values are between 1 to 6. |
| 178 | LogVerbosity int32 |
| 179 | |
| 180 | // Default LogLevel is DEBUG. Available levels: "DEBUG", "WARN", "ERROR", "INFO" |
| 181 | LogLevel string |
| 182 | |
| 183 | // BindAddr denotes the address that Olric will bind to for communication |
| 184 | // with other Olric nodes. |
| 185 | BindAddr string |
| 186 | |
| 187 | // BindPort denotes the address that Olric will bind to for communication |
| 188 | // with other Olric nodes. |
| 189 | BindPort int |
| 190 | |
| 191 | // Client denotes configuration for TCP clients in Olric and the official |
| 192 | // Golang client. |
| 193 | Client *Client |
| 194 | |
| 195 | // KeepAlivePeriod denotes whether the operating system should send |
| 196 | // keep-alive messages on the connection. |
| 197 | KeepAlivePeriod time.Duration |
| 198 | |
| 199 | // IdleClose will automatically close idle connections after the specified duration. |
| 200 | // Use zero to disable this feature. |
| 201 | IdleClose time.Duration |
| 202 | |
| 203 | // Timeout for bootstrap control |
| 204 | // |
| 205 | // An Olric node checks operation status before taking any action for the |
| 206 | // cluster events, responding incoming requests and running API functions. |
| 207 | // Bootstrapping status is one of the most important checkpoints for an |
| 208 | // "operable" Olric node. BootstrapTimeout sets a deadline to check |
| 209 | // bootstrapping status without blocking indefinitely. |
| 210 | BootstrapTimeout time.Duration |
| 211 | |
| 212 | // Coordinator member pushes the routing table to cluster members in the case of |
| 213 | // node join or left events. It also pushes the table periodically. RoutingTablePushInterval |
| 214 | // is the interval between subsequent calls. Default is 1 minute. |
| 215 | RoutingTablePushInterval time.Duration |
| 216 | |
| 217 | // TriggerBalancerInterval is interval between two sequential call of balancer worker. |
| 218 | TriggerBalancerInterval time.Duration |
| 219 | |
| 220 | // The list of host:port which are used by memberlist for discovery. |
| 221 | // Don't confuse it with Name. |
| 222 | Peers []string |
| 223 | |
| 224 | // PartitionCount is 271, by default. |
nothing calls this directly
no outgoing calls
no test coverage detected