Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultConfigProvider = "consul.http://localhost:8500" DefaultConfigFile = "configuration.toml" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Common ¶
type Common interface { UseRegistry() bool ConfigProviderUrl() string Profile() string ConfigDirectory() string ConfigFileName() string Parse([]string) Help() }
Common is an interface that defines AP for the common command-line flags used by most EdgeX services
type Default ¶
Default is the Default implementation of Common used by most EdgeX services
func NewWithUsage ¶
NewWithUsage returns a Default struct.
func (*Default) ConfigDirectory ¶
ConfigDirectory returns the directory where the config file(s) are located, if it was specified.
func (*Default) ConfigFileName ¶
ConfigFileName returns the name of the local configuration file
func (*Default) ConfigProviderUrl ¶
ConfigProviderUrl returns the url for the Configuration Provider, if one was specified.
func (*Default) Parse ¶
Parse parses the passed in command-lie arguments looking to the default set of common flags
func (*Default) UseRegistry ¶
UseRegistry returns whether the Registry should be used or not
Click to show internal directories.
Click to hide internal directories.