Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // populated by ldflags GitCommit string GitTag string BuildDate string )
Functions ¶
Types ¶
type Cmd ¶
type Option ¶
type Option func(o *Options)
type Options ¶
type Options struct { // Name of the application Name string // Description of the application Description string // Version of the application Version string // Action to execute when Run is called and there is no subcommand Action func(*cli.Context) error // TODO replace with built in command definition Commands []*cli.Command // TODO replace with built in flags definition Flags []cli.Flag // Other options for implementations of the interface // can be stored in a context Context context.Context }
Directories ¶
Path | Synopsis |
---|---|
Package cli is a command line interface
|
Package cli is a command line interface |
gen
Package gen provides the micro gen command which simply runs go generate
|
Package gen provides the micro gen command which simply runs go generate |
init
Package init provides the micro init command for initialising plugins and imports
|
Package init provides the micro init command for initialising plugins and imports |
new
Package new generates micro service templates
|
Package new generates micro service templates |
run
Package runtime is the micro runtime Package runtime is the micro runtime
|
Package runtime is the micro runtime Package runtime is the micro runtime |
store
Package cli implements the `micro store` subcommands for example: micro store snapshot micro store restore micro store sync
|
Package cli implements the `micro store` subcommands for example: micro store snapshot micro store restore micro store sync |
token
Package token contains CLI client token related helpers tToken files consist of one line per token, each token having the structure of `micro://envAddress/namespace[/id]:token`, ie.
|
Package token contains CLI client token related helpers tToken files consist of one line per token, each token having the structure of `micro://envAddress/namespace[/id]:token`, ie. |
user
Package user handles the user cli command
|
Package user handles the user cli command |
util
Package cliutil contains methods used across all cli commands @todo: get rid of os.Exits and use errors instread
|
Package cliutil contains methods used across all cli commands @todo: get rid of os.Exits and use errors instread |
protoc-gen-micro is a plugin for the Google protocol buffer compiler to generate Go code.
|
protoc-gen-micro is a plugin for the Google protocol buffer compiler to generate Go code. |
generator
The code generator for the plugin for the Google protocol buffer compiler.
|
The code generator for the plugin for the Google protocol buffer compiler. |
Package server is the micro server which runs the whole system
|
Package server is the micro server which runs the whole system |
Package service provides micro service commands
|
Package service provides micro service commands |
Package usage tracks micro usage
|
Package usage tracks micro usage |
Click to show internal directories.
Click to hide internal directories.