Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ConfigPath string
View Source
var Debug bool
Functions ¶
func ConfigureZapLogger ¶
ConfigureZapLogger configures the zap logger and returns a pointer to the logger and an error
func ConfigureZapSugarLogger ¶
func ConfigureZapSugarLogger(debugging bool) (*zap.SugaredLogger, error)
ConfigureZapSugarLogger configures the zap logger as a zap.SugaredLogger and returns a pointer to the logger and an error
func InitialiseApplication ¶ added in v0.1.4
func InitialiseApplication()
InitialiseApplication initialises the application
func PromptUser ¶
PromptUser prompts the user to confirm an action and returns an error if the user does not confirm
Types ¶
type Configuration ¶
type Configuration struct {
APIConfig api.APIConfiguration `yaml:"opendoar"`
}
Configuration is the configuration for the application
func (*Configuration) Initialise ¶
func (config *Configuration) Initialise(configFilePath string) error
Initialise initialises the application configuration
Click to show internal directories.
Click to hide internal directories.