github.com/goadesign/goa/examples/cellar/gen/http/cli
cli
import "github.com/goadesign/goa/examples/cellar/gen/http/cli"
Overview
Index
- func ParseEndpoint(scheme, host string, doer goahttp.Doer, enc func(*http.Request) goahttp.Encoder, dec func(*http.Response) goahttp.Decoder, restore bool, storageMultiAddEncoderFn storagec.StorageMultiAddEncoderFunc, storageMultiUpdateEncoderFn storagec.StorageMultiUpdateEncoderFunc) (goa.Endpoint, interface{}, error)
- func UsageCommands() string
- func UsageExamples() string
Package files
func ParseEndpoint
func ParseEndpoint(
scheme, host string,
doer goahttp.Doer,
enc func(*http.Request) goahttp.Encoder,
dec func(*http.Response) goahttp.Decoder,
restore bool,
storageMultiAddEncoderFn storagec.StorageMultiAddEncoderFunc,
storageMultiUpdateEncoderFn storagec.StorageMultiUpdateEncoderFunc,
) (goa.Endpoint, interface{}, error)
ParseEndpoint returns the endpoint and payload as specified on the command line.
func UsageCommands
func UsageCommands() string
UsageCommands returns the set of commands and sub-commands using the format
command (subcommand1|subcommand2|...)
func UsageExamples
func UsageExamples() string
UsageExamples produces an example of a valid invocation of the CLI tool.
Generated by godoc2md