registry

package
v1.17.0-tls Latest Latest
Warning

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

Go to latest
Published: May 18, 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

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

SingletonFactory is the factory to build store in SINGLETON pattern.

func (*SingletonFactory) GetStorage

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

GetStorage implement the StorageFactory.GetStorage

type StorageFactory

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