datastorefactory

package
v0.0.0-...-b99263a Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2020 License: MIT Imports: 10 Imported by: 0

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

Jump to

Keyboard shortcuts

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