Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrEmptyPools returned when there is no available pool // needed for the respective operation ErrEmptyPools = errors.New("empty pools") // ErrPoolNotFound returned when there is no pool with the given key ErrPoolNotFound = errors.New("pool not found") )
View Source
var ( // DefaultHealtCheckInterval is the default value for the health check interval DefaultHealtCheckInterval = 3 * time.Second )
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Ring)
Option represents optional option of the redigoring
func WithHealthCheckInterval ¶
WithHealthCheckInterval sets the healt check interval to the given duration
type Ring ¶
type Ring struct {
// contains filtered or unexported fields
}
Ring represent the redigo ring
Click to show internal directories.
Click to hide internal directories.