Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(c *config)
Option is a functional option for configuring the seeder server.
func WithListeners ¶
WithListeners sets the listeners for the configuration.
func WithLogger ¶
WithLogger sets the logger for the configuration.
func WithPromotionTimeLimits ¶
WithPromotionTimeLimits sets the time limits for promotion of a server to master.
waitForMaster is the minimum seeder uptime before any server that does not identify itself as master to be promoted to master.
offlineLimit is the maximum amount of time a server may have one of its subsystems offline after which it is demoted from being master.
func WithTokens ¶
WithTokens sets the tokens for the configuration.
Click to show internal directories.
Click to hide internal directories.