config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CmdConfig

type CmdConfig struct {
	MigrationDir string `yaml:"migration_dir" json:"migration_dir"`
}

func NewCmdConfig

func NewCmdConfig(migrationDir string) CmdConfig

type Config

type Config struct {
	Database DBConfig  `yaml:"db" json:"db"`
	Command  CmdConfig `yaml:"cmd" json:"cmd"`
}

type DBConfig

type DBConfig struct {
	// currently support only "postgres"
	Dialect  string `yaml:"dialect" json:"dialect"`
	Host     string `yaml:"host" json:"host"`
	Port     int    `yaml:"port" json:"port"`
	Username string `yaml:"username" json:"username"`
	Password string `yaml:"password" json:"password"`
	Database string `yaml:"database" json:"database"`
	SSLMode  string `yaml:"sslmode" json:"sslmode"`
}

func (*DBConfig) DSN

func (c *DBConfig) DSN() string

Jump to

Keyboard shortcuts

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