Documentation ¶
Index ¶
- Variables
- func Decorate(commands []cli.Command, decorator Decorator, service string) []cli.Command
- func InitCLI(f func(c *cli.Context) error, service string) func(c *cli.Context) error
- func RecordsCommands(settings *hyper.Settings) ([]cli.Command, error)
- func Server(settings *hyper.Settings) ([]cli.Command, error)
- func Settings(definitions *hyper.Definitions) (*hyper.Settings, error)
- type Decorator
- type Records
Constants ¶
This section is empty.
Variables ¶
View Source
var CommonCommands = []cli.Command{ { Name: "version", Usage: "Print the software version", Action: func(c *cli.Context) error { fmt.Println(hyper.Version); return nil }, }, }
View Source
var CommonFlags = []cli.Flag{ cli.StringFlag{ Name: "level", Value: "info", Usage: "The desired log level", }, cli.StringFlag{ Name: "format", Value: "", Usage: "The desired log format (possible values: iris)", }, cli.StringFlag{ Name: "profile", Value: "", Usage: "enable profiler and store results to given filename", }, }
View Source
var RecordsForm = forms.Form{ Fields: []forms.Field{ { Name: "records", Validators: []forms.Validator{ forms.IsList{ Validators: []forms.Validator{ forms.IsStringMap{ Form: &hyperForms.ChangeRecordForm, }, }, }, }, }, }, }
Functions ¶
Types ¶
type Records ¶
type Records struct {
Records []*hyper.ChangeRecord `json:"records"`
}
Click to show internal directories.
Click to hide internal directories.