Documentation
¶
Overview ¶
Package daemon implements the daemon 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 daemon command.
CobraCommand() *cobra.Command
// Execute represents the cobra run method.
Execute(cmd *cobra.Command, args []string)
}
Command represents the daemon command for any microservice.
type Config ¶
type Config struct {
Logger micrologger.Logger
ServerFactory ServerFactory
Viper *viper.Viper
}
Config represents the configuration used to create a new daemon command.
Click to show internal directories.
Click to hide internal directories.