registry

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2023 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetStore

func GetStore() storage.Store

GetStore returns storage.Store

func WaitStoreUp

func WaitStoreUp()

WaitStoreUp wait for db to go up

Types

type SingletonFactory added in v1.10.0

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

SingletonFactory is the factory to build store in SINGLETON pattern.

func (*SingletonFactory) GetStorage added in v1.10.0

func (f *SingletonFactory) GetStorage() storage.Store

GetStorage implement the StorageFactory.GetStorage

type StorageFactory added in v1.10.0

type StorageFactory interface {
	// GetStorage will return the Storage instance.
	GetStorage() storage.Store
}

StorageFactory is factory to get storage instance.

Jump to

Keyboard shortcuts

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