// Code generated by sdkgen. DO NOT EDIT.

package connectionmanager

import (
	"context"

	"google.golang.org/grpc"
)

// ConnectionManager provides access to "connectionmanager" component of Yandex.Cloud
type ConnectionManager struct {
	getConn func(ctx context.Context) (*grpc.ClientConn, error)
}

// NewConnectionManager creates instance of ConnectionManager
func NewConnectionManager(g func(ctx context.Context) (*grpc.ClientConn, error)) *ConnectionManager {
	return &ConnectionManager{g}
}

// Connection gets ConnectionService client
func (c *ConnectionManager) Connection() *ConnectionServiceClient {
	return &ConnectionServiceClient{getConn: c.getConn}
}
