Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorEmptyClientPool = errors.New("loggregator client pool is empty")
Functions ¶
This section is empty.
Types ¶
type AddressGetter ¶
type AddressGetter interface {
GetAddresses() []string
}
type LoggregatorClientPool ¶
func NewLoggregatorClientPool ¶
func NewLoggregatorClientPool(logger *gosteno.Logger, port int, getter AddressGetter) *LoggregatorClientPool
func (*LoggregatorClientPool) ListClients ¶
func (pool *LoggregatorClientPool) ListClients() []loggregatorclient.LoggregatorClient
func (*LoggregatorClientPool) RandomClient ¶
func (pool *LoggregatorClientPool) RandomClient() (loggregatorclient.LoggregatorClient, error)
Click to show internal directories.
Click to hide internal directories.