providers

package
v0.0.0-...-6236432 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DB

func DB(lc *lifecycle.Lifecycle, logger *logrus.Logger, driverName, databaseURL string) *sql.DB

func Logger

func Logger() *logrus.Logger

Types

type DBProvider

type DBProvider struct {
	DB *sql.DB
}

func NewDBProvider

func NewDBProvider(logger *logrus.Logger, driverName, databaseURL string) *DBProvider

func (*DBProvider) Start

func (s *DBProvider) Start(_ context.Context) error

func (*DBProvider) Stop

func (s *DBProvider) Stop(_ context.Context) error

Jump to

Keyboard shortcuts

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