utils

package
v0.0.0-...-495f4b4 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DbServerGrpcConn sync.Pool
)
View Source
var RabbitMQ *rabbitMQClient

Functions

func CopyAndCapture

func CopyAndCapture(w io.Writer, r io.Reader) ([]byte, error)

func InitPool

func InitPool()

func NewRabbitMQClient

func NewRabbitMQClient(cfg config.RabbitmqConfig) *rabbitMQClient

func Pipeline

func Pipeline(cmds ...*exec.Cmd) (pipeLineOutput, collectedStandardError []byte, pipeLineError error)

Pipeline strings together the given exec.Cmd commands in a similar fashion to the Unix pipeline. Each command's standard output is connected to the standard input of the next command, and the output of the final command in the pipeline is returned, along with the collected standard error of all commands and the first error found (if any).

To provide input to the pipeline, assign an io.Reader to the first's Stdin.

func VersionCompare

func VersionCompare(v1, v2 string) (result int)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL