Documentation
¶
Index ¶
- func GetFreePort() (int, error)
- func NewConfig() *config.Config
- func NewConfigWithTLS(t *testing.T, serverTLS, clientTLS *tls.Config) *config.Config
- func NewEngineConfig(t *testing.T) *config.Engine
- func NewFlogger(c *config.Config) *flog.Logger
- func NewServer(c *config.Config) *server.Server
- func ToKey(i int) string
- func ToVal(i int) []byte
- func TryWithInterval(max int, interval time.Duration, f func() error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFreePort ¶
GetFreePort returns a loopback port that is free for both TCP and UDP. Memberlist binds its TCP and UDP listeners on the same port number, so a port checked for TCP alone can still fail with "address already in use" when another socket holds the UDP side.
func NewConfigWithTLS ¶ added in v0.2.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.