Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
IO *IO
OutputType string
ConfigDir string
Output *out.Output
ExitCode int
Initialized bool
Docker
// contains filtered or unexported fields
}
Config is the main config struct for the app. All needed access handlers are defined here
func (*Config) CloseDatabase ¶
CloseDatabase will close the database if it is owned by the config
func (*Config) OpenDatabase ¶
OpenDatabase will open a connection to the database if not done yet and will return it
func (*Config) WithDatabase ¶
WithDatabase will create a new config with the given database and returns a new config
type Database ¶
type Database struct {
DB *bolt.DB
}
Database is a simple struct that contains a bolt database. Used if only a db is required instead of the whole config.
Click to show internal directories.
Click to hide internal directories.