util

package
v1.3.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2019 License: MIT Imports: 18 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig added in v1.3.0

func LoadConfig(cfgFile string, path []string, name string, flags []string) (*configWrapper, error)

LoadConfig config and merge it's values with set of flags.

func LogEvent

func LogEvent(logger *logrus.Logger, event int, ctx interface{}) bool

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 RPCClient

func RPCClient(container service.Container) (*rpc.Client, error)

RPCClient returns RPC client associated with given roadrunner service container.

func Sprintf

func Sprintf(format string, args ...interface{}) string

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳