// Code generated by sdkgen. DO NOT EDIT.

package mdbproxy

import (
	"context"

	"google.golang.org/grpc"
)

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

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

// Proxy gets ProxyService client
func (p *Proxy) Proxy() *ProxyServiceClient {
	return &ProxyServiceClient{getConn: p.getConn}
}
