driver

package
v0.0.0-...-31f8ae8 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataService

type DataService struct {
	Config *config.DB
	ORM    *gorm.DB
}

DataService is a struct

func (*DataService) Connect

func (db *DataService) Connect() (*DataService, error)

Connect is a method

type DataServiceRepository

type DataServiceRepository interface {
	Connect() (*DataService, error)
}

DataServiceRepository represents the contract

func NewDataService

func NewDataService(config config.DB) DataServiceRepository

NewDataService is a constructor

Jump to

Keyboard shortcuts

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