// Code generated by sdkgen. DO NOT EDIT.

package functions

import (
	"context"

	"google.golang.org/grpc"
)

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

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

// Function gets FunctionService client
func (f *Function) Function() *FunctionServiceClient {
	return &FunctionServiceClient{getConn: f.getConn}
}
