Documentation ¶
Overview ¶
Package command implements the root command for any microservice.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
Types ¶
type Command ¶
type Command interface { // CobraCommand returns the actual cobra command for the root command. CobraCommand() *cobra.Command // DaemonCommand returns the daemon sub command. DaemonCommand() daemon.Command // Execute represents the cobra run method. Execute(cmd *cobra.Command, args []string) // VersionCommand returns the version sub command. VersionCommand() version.Command }
Command represents the root command for any microservice.
type Config ¶
type Config struct { Logger micrologger.Logger ServerFactory daemon.ServerFactory Description string GitCommit string Name string Source string Version string VersionBundles []versionbundle.Bundle Viper *viper.Viper }
Config represents the configuration used to create a new root command.
Directories ¶
Path | Synopsis |
---|---|
Package daemon implements the daemon command for any microservice.
|
Package daemon implements the daemon command for any microservice. |
Package version implements the version command for any microservice.
|
Package version implements the version command for any microservice. |
Click to show internal directories.
Click to hide internal directories.