2019-09-10 18:52:55 +03:00

25 lines
568 B
Go

// 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}
}