Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
Pool stores a pool of grpc connections to, it's useful in places where you would otherwise need to create several connections.
func NewPool ¶
func NewPool(kubeClient *kube.Client, namespace string, serviceName string, numWorkers int, opts ...grpc.DialOption) (*Pool, error)
NewPool creates a new connection pool with connections to pods in the given service.
func (*Pool) Close ¶
Close closes all connections stored in the pool, it returns an error if any of the calls to Close error.
Click to show internal directories.
Click to hide internal directories.