Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct { Mocks Mocks `mapstructure:"mocks"` Server Server `mapstructure:"server"` }
Configuration is the parent struct that holds the configuration itself. Mocks is the configuration for the mocks.
func NewConfiguration ¶
func NewConfiguration(file string) (cfg Configuration, err error)
NewConfiguration creates the base configuration from the file specified or the default located in the same directory as the executable or in the current directory.
Click to show internal directories.
Click to hide internal directories.