Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Schema *jsonschema.Schema
Functions ¶
Types ¶
type Action ¶
type Action struct {
RawTitle string `json:"title"`
Shortcut string `json:"shortcut"`
Type ActionType `json:"type"`
Inputs []FormInput `json:"inputs"`
// edit
Page string `json:"page"`
// open
Target string `json:"target"`
// copy
Text string `json:"text"`
// run / push
Command string `json:"command"`
Args []string `json:"args"`
// run
OnSuccess OnSuccessType `json:"onSuccess"`
}
type ActionType ¶ added in v0.4.1
type ActionType int
const ( UnknownAction ActionType = iota CopyAction OpenAction ReadAction RunAction ReloadAction )
func (*ActionType) UnmarshalJSON ¶ added in v0.4.1
func (a *ActionType) UnmarshalJSON(bytes []byte) error
type FormInputType ¶ added in v0.4.1
type FormInputType int
const ( UnknownFormInput FormInputType = iota TextField TextArea DropDown )
func (*FormInputType) UnmarshalJSON ¶ added in v0.4.1
func (input *FormInputType) UnmarshalJSON(bytes []byte) error
type OnSuccessType ¶ added in v0.4.1
type OnSuccessType int
const ( ExitOnSuccess OnSuccessType = iota PushOnSuccess ReloadOnSuccess )
func (*OnSuccessType) UnmarshalJSON ¶ added in v0.4.1
func (o *OnSuccessType) UnmarshalJSON(bytes []byte) error
Click to show internal directories.
Click to hide internal directories.