Versions in this module Expand all Collapse all v0 v0.4.7 Mar 19, 2020 Changes in this version + var ErrFeatureNotFound = "Feature %s not found in response." + var ErrInvalidFeatureName = "invalid feature ids %s provided, feature names must be in the format <project>/<feature>:<version>" + var ErrLengthMismatch = "Length mismatch; number of na values (%d) not equal to number of features requested (%d)." + var ErrTypeMismatch = "Requested output of type %s does not match type of feature value returned." + func BoolVal(val bool) *types.Value + func BytesVal(val []byte) *types.Value + func DoubleVal(val float64) *types.Value + func FloatVal(val float32) *types.Value + func Int32Val(val int32) *types.Value + func Int64Val(val int64) *types.Value + func StrVal(val string) *types.Value + type Client interface + Close func() error + GetFeastServingInfo func(ctx context.Context, in *serving.GetFeastServingInfoRequest) (*serving.GetFeastServingInfoResponse, error) + GetOnlineFeatures func(ctx context.Context, req *OnlineFeaturesRequest) (*OnlineFeaturesResponse, error) + type GrpcClient struct + func NewGrpcClient(host string, port int) (*GrpcClient, error) + func (fc *GrpcClient) Close() error + func (fc *GrpcClient) GetFeastServingInfo(ctx context.Context, in *serving.GetFeastServingInfoRequest) (*serving.GetFeastServingInfoResponse, error) + func (fc *GrpcClient) GetOnlineFeatures(ctx context.Context, req *OnlineFeaturesRequest) (*OnlineFeaturesResponse, error) + type OnlineFeaturesRequest struct + Entities []Row + Features []string + Project string + type OnlineFeaturesResponse struct + RawResponse *serving.GetOnlineFeaturesResponse + func (r OnlineFeaturesResponse) Float64Arrays(order []string, fillNa []float64) ([][]float64, error) + func (r OnlineFeaturesResponse) Int64Arrays(order []string, fillNa []int64) ([][]int64, error) + func (r OnlineFeaturesResponse) Rows() []Row + type Row map[string]*types.Value