storage

package
v0.0.0-...-1b7c243 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2017 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultDbDriverName = "mongodb"
)

Functions

func RegisterDbDriver

func RegisterDbDriver(name string, driver DbDriver)

RegisterDbDriver registers a new DB driver

Types

type DbDriver

type DbDriver struct {
	TeamService     auth.TeamService
	PlatformService app.PlatformService
	PlanService     app.PlanService
	CacheService    cache.CacheService
}

func GetCurrentDbDriver

func GetCurrentDbDriver() (*DbDriver, error)

GetCurrentDbDriver returns the DB driver specified in the configuration file. If this configuration was omitted, it returns the default DB driver

func GetDbDriver

func GetDbDriver(name string) (*DbDriver, error)

GetDbDriver returns the DB driver that was registered with a specific name

func GetDefaultDbDriver

func GetDefaultDbDriver() (*DbDriver, error)

GetDefaultDbDriver returns the default DB driver

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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