Documentation
¶
Index ¶
- func LoadConfig(cfgFile string, path []string, name string, flags []string) (*configWrapper, error)
- func LogEvent(logger *logrus.Logger, event int, ctx interface{}) bool
- func Printf(format string, args ...interface{})
- func RPCClient(container service.Container) (*rpc.Client, error)
- func Sprintf(format string, args ...interface{}) string
- func WorkerTable(workers []*rrutil.State) *tablewriter.Table
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfig ¶ added in v1.3.0
LoadConfig config and merge it's values with set of flags.
func LogEvent ¶
LogEvent outputs rr event into given logger and return false if event was not handled.
func Printf ¶
func Printf(format string, args ...interface{})
Printf works identically to fmt.Print but adds `<white+hb>color formatting support for CLI</reset>`.
func Sprintf ¶
Sprintf works identically to fmt.Sprintf but adds `<white+hb>color formatting support for CLI</reset>`.
func WorkerTable ¶
func WorkerTable(workers []*rrutil.State) *tablewriter.Table
WorkerTable renders table with information about rr server workers.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.