config

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunMigrations

func RunMigrations(db *gorm.DB) error

RunMigrations ...

Types

type Config

type Config struct {
	Flags *Flags
}

Config ...

func New

func New() *Config

New ...

func (*Config) Cwd

func (c *Config) Cwd() (string, error)

Cwd returns the current working directory.

type DB

type DB struct {
	Username string
	Password string
	Port     int
	Database string
}

DB ...

type Flags

type Flags struct {
	Addr string
	DB   *DB
}

Flags contains the command line flags.

func NewFlags

func NewFlags() *Flags

NewFlags ...

Jump to

Keyboard shortcuts

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