Documentation ¶
Overview ¶
Package genclient provides a generator for the client tool and package of a goa application. The generator creates a main.go file and a subpackage containing data structures specific to the service.
The generated code includes a client package with:
- One client method per resource action
- Helper functions to build the corresponding request paths
- Structs for the action payloads and dependent types
- Structs for the action media types and corresponding decoder functions
The generated code also includes a CLI tool with commands for each action and sub-commands for each resource.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Version is the generated client version. Version string )
Functions ¶
Types ¶
type Command ¶
type Command struct {
*codegen.BaseCommand
}
Command is the goa application code generator command line data structure. It implements meta.Command.
func (*Command) RegisterFlags ¶
func (c *Command) RegisterFlags(r codegen.FlagRegistry)
RegisterFlags registers the command line flags with the given registry.
Click to show internal directories.
Click to hide internal directories.