cmd

package
v2.16.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2019 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Warning = color.New(color.FgRed)
	Notice  = color.New(color.FgGreen)
	Debug   = color.New(color.FgBlue)
)

Functions

func FlagMaxGRPCMsgSizeMB

func FlagMaxGRPCMsgSizeMB(fs *flag.FlagSet) *int

FlagMaxGRPCMsgSizeMB sets the CLI configuation flag for max gRPC send/recive msg size.

func GRPCSizeOptions

func GRPCSizeOptions(sizeMB int) ([]grpc.ServerOption, error)

GRPCSizeOptions returns a slice of gRPC server options with the max message size the server can send/receive set. Error is returned if requested size is bigger than 2GB. It is intended to be shared by gRPC in bblfshd Server and Drivers.

Types

type Command

type Command struct {
	Verbose bool   `long:"verbose" description:"show verbose debug information"`
	Root    string `long:"root" default:"." description:"root of the driver"`
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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