manager

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager interface {
	GetConnection() *connection.Connection

	GetClient() interface{}

	/** @todo maybe remove these shortcuts */
	/* shortcut methods used for valid return types */
	GetClientForMysql() *gorm.DB

	GetClientForMongo() *mongo.Client
}

func NewMongo

func NewMongo(connection *connection.Connection) Manager

func NewMysql

func NewMysql(connection *connection.Connection, env string) Manager

type Map

type Map map[string]Manager

type Mongo

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

func (*Mongo) GetClient

func (m *Mongo) GetClient() interface{}

func (*Mongo) GetClientForMongo

func (m *Mongo) GetClientForMongo() *mongo.Client

func (*Mongo) GetClientForMysql

func (m *Mongo) GetClientForMysql() *gorm.DB

func (*Mongo) GetConnection

func (m *Mongo) GetConnection() *connection.Connection

type Mysql

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

func (*Mysql) GetClient

func (m *Mysql) GetClient() interface{}

func (*Mysql) GetClientForMongo

func (m *Mysql) GetClientForMongo() *mongo.Client

func (*Mysql) GetClientForMysql

func (m *Mysql) GetClientForMysql() *gorm.DB

func (*Mysql) GetConnection

func (m *Mysql) GetConnection() *connection.Connection

Jump to

Keyboard shortcuts

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