Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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.
Click to show internal directories.
Click to hide internal directories.