Documentation
¶
Overview ¶
Package datastorefactory using factory method pattern to create concrete database handler. Datastore can be a database or a service ( for example, gRPC service or RESTFul service), which provides data access for domain model. There is only one method Build() for the factory and all different types of store following the same interface to build the store connection. Generally speaking, each data store need a separate factory.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDataStoreFb ¶
func GetDataStoreFb(key string) dsFbInterface
GetDataStoreFb is accessors for factoryBuilderMap
Types ¶
type DataStoreInterface ¶
type DataStoreInterface interface{}
DataStoreInterface serve as a marker to indicate the return type for Build method
Click to show internal directories.
Click to hide internal directories.