Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCommand ¶
NewCommand creates the trigger command with all subcommands.
Types ¶
type Trigger ¶
type Trigger struct {
ID string `json:"id"`
Pattern string `json:"pattern"`
Action string `json:"action"`
Enabled bool `json:"enabled"`
Created time.Time `json:"created"`
}
Trigger represents a text trigger
type TriggerStore ¶
type TriggerStore struct {
Triggers []*Trigger `json:"triggers"`
}
TriggerStore represents the collection of triggers
Click to show internal directories.
Click to hide internal directories.