registry

package
v0.0.0-...-a71f0cf Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProvider

func NewProvider(system *actor.ActorSystem, uri persistence2.URI) (persistence.Provider, error)

func RegisterFactory

func RegisterFactory(name string, factory func(system *actor.ActorSystem, uri *url.URL) (persistence2.Store, error))

RegisterFactory registers a store factory given its name.

Types

type StoreFactory

type StoreFactory func(system *actor.ActorSystem, uri *url.URL) (persistence2.Store, error)

type StoreRegistry

type StoreRegistry map[string]StoreFactory

func (StoreRegistry) Get

func (f StoreRegistry) Get(name string) (StoreFactory, error)

func (StoreRegistry) GetFromURI

func (f StoreRegistry) GetFromURI(uri *url.URL) (StoreFactory, error)

Jump to

Keyboard shortcuts

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