repo

package
v0.0.0-...-5e165d6 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Host          string
	Port          int
	Name          string
	User          string
	Pass          string
	MaxIdleConns  int
	MaxOpenConns  int
	MigrationPath string
}

func (*Config) FormatDSN

func (c *Config) FormatDSN() string

type Repo

type Repo struct {
	DB     *sqlx.DB
	Logger *structlog.Logger
}

func New

func New(cfg *Config, log *structlog.Logger) (*Repo, error)

Jump to

Keyboard shortcuts

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