Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsValidOrigin ¶ added in v1.7.0
IsValidOrigin returns true if the given string is a valid Origin.
Types ¶
type Origin ¶
type Origin string
Origin defines the origin of the command.
const ( // UnknownOrigin is the default value for Origin. UnknownOrigin Origin = "unknown" // TypedOrigin is the value for Origin when the command was typed by the user. TypedOrigin Origin = "typed" // ButtonClickOrigin is the value for Origin when the command was triggered by a button click. ButtonClickOrigin Origin = "buttonClick" // SelectValueChangeOrigin is the value for Origin when the command was triggered by a select value change. SelectValueChangeOrigin Origin = "selectValueChange" // MultiSelectValueChangeOrigin is the value for Origin when the command was triggered by a multi-select value change. MultiSelectValueChangeOrigin Origin = "multiSelectValueChange" // PlainTextInputOrigin is the value for Origin when the command was triggered by a plain text input. PlainTextInputOrigin Origin = "plainTextInput" // AutomationOrigin is the value for Origin when the command was triggered by an automation. AutomationOrigin Origin = "automation" )
Click to show internal directories.
Click to hide internal directories.