database

package
v0.0.0-...-60c035c Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	Host     string
	Port     string
	Username string
	Password string
	DBName   string
}

DB Database

func NewDB

func NewDB(c *config.Config) *DB

NewDB Configから、DBオブジェクトを作成します

func (*DB) NewMongoDBConnection

func (d *DB) NewMongoDBConnection() (*mongo.Database, context.Context, context.CancelFunc)

NewMongoDBConnection DBオブジェクトからMongoDBの接続を作成します

func (*DB) NewMysqlConnection

func (d *DB) NewMysqlConnection() *gorm.DB

NewMysqlConnection DBオブジェクトからMysqlの接続を作成します

Jump to

Keyboard shortcuts

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