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 a k8s service, it's useful in places where you would otherwise need to keep recreating connections.
func NewPool ¶
func NewPool(kubeClient *kube.Clientset, namespace string, serviceName string, port int, queueSize int64, opts ...grpc.DialOption) (*Pool, error)
NewPool creates a new connection pool with connections to pods in the given service.
Click to show internal directories.
Click to hide internal directories.