config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: MIT 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 {
	CacheDir      string
	PgHost        string
	PgUser        string
	PgPass        string
	PgDb          string
	ForceDownload bool
}

func New

func New(opts ...Option) Config

type Option

type Option func(*Config)

func OptCacheDir

func OptCacheDir(s string) Option

func OptForceDownload

func OptForceDownload(b bool) Option

func OptPgDb

func OptPgDb(s string) Option

func OptPgHost

func OptPgHost(s string) Option

func OptPgPass

func OptPgPass(s string) Option

func OptPgUser

func OptPgUser(s string) Option

Jump to

Keyboard shortcuts

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