factory

package
v0.0.0-...-ec2e5f7 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDefaultCacheFactory

func NewDefaultCacheFactory() interfaces.CacheFactory

func NewDefaultFactory

func NewDefaultFactory() interfaces.DatabaseDriverFactory

func NewDefaultKVFactory

func NewDefaultKVFactory() interfaces.KVFactory

func NewDefaultMemoryRealtimeFactory

func NewDefaultMemoryRealtimeFactory() interfaces.RealtimeBusFactory

func NewNoopPluginHost

func NewNoopPluginHost() interfaces.PluginHost

Types

type DefaultCacheFactory

type DefaultCacheFactory struct{}

DefaultCacheFactory creates cache drivers for open-core engines.

func (*DefaultCacheFactory) Create

func (f *DefaultCacheFactory) Create(cfg *models.Config, engineType string) (interfaces.CacheDBInterface, error)

type DefaultFactory

type DefaultFactory struct{}

DefaultFactory implements open-core database drivers (BBolt, SQL, Mongo).

func (*DefaultFactory) CreateProjectDriver

func (f *DefaultFactory) CreateProjectDriver(conf *models.Config, engineConfig *models.DriverCredentials) (interfaces.ProjectDBInterface, error)

func (*DefaultFactory) CreateSystemDriver

func (f *DefaultFactory) CreateSystemDriver(conf *models.Config, engineConfig *models.DriverCredentials) (interfaces.ApitoSystemDB, error)

func (*DefaultFactory) SupportsEngine

func (f *DefaultFactory) SupportsEngine(engine string) bool

type DefaultKVFactory

type DefaultKVFactory struct{}

DefaultKVFactory creates KV drivers for open-core engines.

func (*DefaultKVFactory) Create

type DefaultMemoryRealtimeFactory

type DefaultMemoryRealtimeFactory struct{}

DefaultMemoryRealtimeFactory creates the in-process memory realtime bus.

func (*DefaultMemoryRealtimeFactory) Create

type NoopPluginHost

type NoopPluginHost struct{}

NoopPluginHost satisfies PluginHost without loading third-party plugins. A functions-enabled binary can replace it with a plugin supervisor at boot.

func (*NoopPluginHost) Load

func (*NoopPluginHost) PrintRoutes

func (h *NoopPluginHost) PrintRoutes()

func (*NoopPluginHost) StartMonitoring

func (h *NoopPluginHost) StartMonitoring(ctx context.Context, runtime interfaces.PluginRuntime)

func (*NoopPluginHost) Wait

func (h *NoopPluginHost) Wait()

Jump to

Keyboard shortcuts

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