Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Logger - shared logger. Logger = logrus.New() // Container - shared service bus. Container = service.NewContainer(Logger) // CLI is application endpoint. CLI = &cobra.Command{ Use: "rr", SilenceErrors: true, SilenceUsage: true, Short: utils.Sprintf("<green>RoadRunner, PHP Application Server.</reset>"), } )
Service bus for all the commands.
Functions ¶
Types ¶
type ViperWrapper ¶
type ViperWrapper struct {
// contains filtered or unexported fields
}
ViperWrapper provides interface bridge between v configs and service.Config.
func (*ViperWrapper) Get ¶
func (w *ViperWrapper) Get(key string) service.Config
Get nested config section (sub-map), returns nil if section not found.
func (*ViperWrapper) Unmarshal ¶
func (w *ViperWrapper) Unmarshal(out interface{}) error
Unmarshal unmarshal config data into given struct.
Click to show internal directories.
Click to hide internal directories.