config

package
v0.0.0-...-7b2af25 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetStartContext

func GetStartContext(cfg utils.Config, parseConfig *StartConfig) (*worker.Context, error)

GetStartContext sets up database context

func ReadConfig

func ReadConfig(cfg *StartConfig) (utils.Config, error)

ReadConfig allows to read the configuration using the provided config

func ReadConfigPreRunE

func ReadConfigPreRunE(cfg *StartConfig) utils.CobraCmdFunc

ReadConfigPreRunE represents a Cobra cmd function allowing to read the config before executing the command itself

func UpdateGlobalConfig

func UpdateGlobalConfig(cfg *StartConfig) error

UpdateGlobalConfig parses the configuration file and sets it as global configuration

Types

type StartConfig

type StartConfig struct {
	// contains filtered or unexported fields
}

StartConfig contains all the configuration for "start" command

func NewStartConfig

func NewStartConfig() *StartConfig

NewStartConfig allows to build new StartConfig instance

func (*StartConfig) GetConfigParser

func (cfg *StartConfig) GetConfigParser() utils.ConfigParser

GetConfigParser returns the configuration parser

func (*StartConfig) GetDatabaseBuilder

func (cfg *StartConfig) GetDatabaseBuilder() database.DatabaseBuilder

GetDatabaseBuilder returns the database builder

Jump to

Keyboard shortcuts

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