// Code generated by sdkgen. DO NOT EDIT.

package broker

import (
	"context"

	"google.golang.org/grpc"
)

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

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

// BrokerData gets BrokerDataService client
func (b *BrokerData) BrokerData() *BrokerDataServiceClient {
	return &BrokerDataServiceClient{getConn: b.getConn}
}
