Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigBasedPool ¶
type ConfigBasedPool struct { service.AbstractService // contains filtered or unexported fields }
ConfigBasedPool is the simple delegate pool implementing Pool interface
func NewConfigBasedPool ¶
func NewConfigBasedPool(delegate *config.Delegate) *ConfigBasedPool
NewConfigBasedPool creates an instance of config-based delegate pool
func (*ConfigBasedPool) AllDelegates ¶
func (cbdp *ConfigBasedPool) AllDelegates() ([]net.Addr, error)
AllDelegates implements getting the delegates from config
func (*ConfigBasedPool) AnotherDelegate ¶
func (cbdp *ConfigBasedPool) AnotherDelegate(self string) net.Addr
AnotherDelegate return the first delegate that is not the passed-in address
Click to show internal directories.
Click to hide internal directories.