clientutils

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2021 License: BSD-2-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Flags

func Flags(address *string, tlsDisable *bool, output *string, cmdFlags []cli.Flag) []cli.Flag

Flags returns a list of the common CLI flags for gRPC clients combined with a list of specific CLI command flags.

func OpenConnection

func OpenConnection(address string, tlsDisable bool) *grpc.ClientConn

OpenConnection returns a new grpc.ClientConn object. It blocks until a connection is made or the process timed out.

func Println

func Println(format string, resp interface{})

Println prints the response using the desired format.

func VerifyFlags

func VerifyFlags(outputFlag string)

VerifyFlags verifies the values of specific client flags such as `output`.

Types

This section is empty.

Jump to

Keyboard shortcuts

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