cmdutil

package
v0.0.0-...-296d480 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0, BSD-2-Clause, MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultRpcAddress = "127.0.0.1"
	DefaultRpcPort    = "8887"
)

Variables

View Source
var SilentError = errors.New("SilentError")

SilentError is an error that triggers exit code 1 without any error messaging

Functions

func GetGrpcConn

func GetGrpcConn() (*grpc.ClientConn, error)

func GetVal

func GetVal(key string) string

func Reset

func Reset()

func SetKeyValPair

func SetKeyValPair(key string, value string)

Types

type FlagError

type FlagError struct {
	Err error
}

FlagError is the kind of error raised in flag processing

func (FlagError) Error

func (fe FlagError) Error() string

func (FlagError) Unwrap

func (fe FlagError) Unwrap() error

Jump to

Keyboard shortcuts

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