cmd

package
v0.0.0-...-6de2aca Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2020 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "grpc-gateway-example",
	Short: "Example client and server of gRPC and gRPC-gateway example",
	Long: `To get started run the serve subcommand which will start a server
on localhost:10000:

    grpc-gateway-example serve

Then you can hit it with the client:

    grpc-gateway-example echo foo bar baz

Or over HTTP 1.1 with curl:

    curl -X POST -k http://localhost:10000/v1/echo -d '{"value": "foo"}'
`,
}

This represents the base command when called without any subcommands

Functions

func Execute

func Execute()

Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

This section is empty.

Jump to

Keyboard shortcuts

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