embedded

package
v0.38.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataTable

type DataTable struct {
	DataPtr   uintptr
	SchemaPtr uintptr
}

type LoggingOptions added in v0.21.0

type LoggingOptions struct {
	ChannelCapacity int
	EmitTimeout     time.Duration
	WriteInterval   time.Duration
	FlushInterval   time.Duration
}

LoggingOptions is a public (embedded) copy of logging.LoggingOptions struct. See logging.LoggingOptions for properties description

type OnlineFeatureService

type OnlineFeatureService struct {
	// contains filtered or unexported fields
}

func NewOnlineFeatureService

func NewOnlineFeatureService(conf *OnlineFeatureServiceConfig, transformationCallback transformation.TransformationCallback) *OnlineFeatureService

func (*OnlineFeatureService) CheckForInstantiationError added in v0.22.0

func (s *OnlineFeatureService) CheckForInstantiationError() error

func (*OnlineFeatureService) GetEntityTypesMap

func (s *OnlineFeatureService) GetEntityTypesMap(featureRefs []string) (map[string]int32, error)

func (*OnlineFeatureService) GetEntityTypesMapByFeatureService

func (s *OnlineFeatureService) GetEntityTypesMapByFeatureService(featureServiceName string) (map[string]int32, error)

func (*OnlineFeatureService) GetOnlineFeatures

func (s *OnlineFeatureService) GetOnlineFeatures(
	featureRefs []string,
	featureServiceName string,
	entities DataTable,
	requestData DataTable,
	fullFeatureNames bool,
	output DataTable) error

func (*OnlineFeatureService) StartGprcServer added in v0.21.0

func (s *OnlineFeatureService) StartGprcServer(host string, port int) error

StartGprcServer starts gRPC server with disabled feature logging and blocks the thread

func (*OnlineFeatureService) StartGprcServerWithLogging added in v0.21.0

func (s *OnlineFeatureService) StartGprcServerWithLogging(host string, port int, writeLoggedFeaturesCallback logging.OfflineStoreWriteCallback, loggingOpts LoggingOptions) error

StartGprcServerWithLogging starts gRPC server with enabled feature logging Caller of this function must provide Python callback to flush buffered logs as well as logging configuration (loggingOpts)

func (*OnlineFeatureService) StartGprcServerWithLoggingDefaultOpts added in v0.21.0

func (s *OnlineFeatureService) StartGprcServerWithLoggingDefaultOpts(host string, port int, writeLoggedFeaturesCallback logging.OfflineStoreWriteCallback) error

StartGprcServerWithLoggingDefaultOpts starts gRPC server with enabled feature logging but default configuration for logging Caller of this function must provide Python callback to flush buffered logs

func (*OnlineFeatureService) StartHttpServer added in v0.22.0

func (s *OnlineFeatureService) StartHttpServer(host string, port int) error

StartHttpServer starts HTTP server with disabled feature logging and blocks the thread

func (*OnlineFeatureService) StartHttpServerWithLogging added in v0.22.0

func (s *OnlineFeatureService) StartHttpServerWithLogging(host string, port int, writeLoggedFeaturesCallback logging.OfflineStoreWriteCallback, loggingOpts LoggingOptions) error

StartHttpServerWithLogging starts HTTP server with enabled feature logging Caller of this function must provide Python callback to flush buffered logs as well as logging configuration (loggingOpts)

func (*OnlineFeatureService) StartHttpServerWithLoggingDefaultOpts added in v0.22.0

func (s *OnlineFeatureService) StartHttpServerWithLoggingDefaultOpts(host string, port int, writeLoggedFeaturesCallback logging.OfflineStoreWriteCallback) error

StartHttpServerWithLoggingDefaultOpts starts HTTP server with enabled feature logging but default configuration for logging Caller of this function must provide Python callback to flush buffered logs

func (*OnlineFeatureService) StopGrpcServer added in v0.22.0

func (s *OnlineFeatureService) StopGrpcServer()

func (*OnlineFeatureService) StopHttpServer added in v0.22.0

func (s *OnlineFeatureService) StopHttpServer()

type OnlineFeatureServiceConfig

type OnlineFeatureServiceConfig struct {
	RepoPath   string
	RepoConfig string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL