dbfx

package
v0.0.0-...-6b7fec4 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const ConfigKey = "db"

Variables

View Source
var Module = fx.Options(fx.Provide(New))

Functions

This section is empty.

Types

type Config

type Config struct {
	URL string `yaml:"url"`
}

type Params

type Params struct {
	fx.In
	Log       *zap.Logger
	Lifecycle fx.Lifecycle
	Config    config.Provider
}

type Result

type Result struct {
	fx.Out
	DB *sql.DB
}

func New

func New(p Params) (Result, error)

Jump to

Keyboard shortcuts

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