config

package
v0.1.27 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: Apache-2.0 Imports: 2 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 {
	Flags *Flags
}

Config ...

func New

func New() *Config

New ...

func (*Config) Cwd

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

Cwd returns the current working directory.

func (*Config) DSN added in v0.1.26

func (c *Config) DSN() string

DSN for PostgreSQL.

func (*Config) Prefix added in v0.1.26

func (c *Config) Prefix() string

Prefix ...

type Database added in v0.1.26

type Database struct {
	Addr     string
	Database string
	Password string
	Port     int
	Username string
	Prefix   string
}

Database ...

type Flags

type Flags struct {
	Addr     string
	Database *Database
}

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