30 lines
829 B
Go
30 lines
829 B
Go
|
// Code generated by sdkgen. DO NOT EDIT.
|
||
|
|
||
|
package loadbalancer
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
|
||
|
"google.golang.org/grpc"
|
||
|
)
|
||
|
|
||
|
// LoadBalancer provides access to "loadbalancer" component of Yandex.Cloud
|
||
|
type LoadBalancer struct {
|
||
|
getConn func(ctx context.Context) (*grpc.ClientConn, error)
|
||
|
}
|
||
|
|
||
|
// NewLoadBalancer creates instance of LoadBalancer
|
||
|
func NewLoadBalancer(g func(ctx context.Context) (*grpc.ClientConn, error)) *LoadBalancer {
|
||
|
return &LoadBalancer{g}
|
||
|
}
|
||
|
|
||
|
// NetworkLoadBalancer gets NetworkLoadBalancerService client
|
||
|
func (l *LoadBalancer) NetworkLoadBalancer() *NetworkLoadBalancerServiceClient {
|
||
|
return &NetworkLoadBalancerServiceClient{getConn: l.getConn}
|
||
|
}
|
||
|
|
||
|
// TargetGroup gets TargetGroupService client
|
||
|
func (l *LoadBalancer) TargetGroup() *TargetGroupServiceClient {
|
||
|
return &TargetGroupServiceClient{getConn: l.getConn}
|
||
|
}
|