Documentation ¶
Index ¶
Constants ¶
View Source
const (
RainfallPrefix = "rainfall"
)
Variables ¶
View Source
var (
CommandSyntaxError = errors.New("CommandSyntaxError")
)
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
func NewCommand ¶
func NewCommand(p *plugin) *Command
type CommandType ¶
type CommandType string
const ( CommandTypeAddLocation CommandType = "add" CommandTypeRemoveLocation CommandType = "rm" CommandTypeChangeLocation CommandType = "change" CommandTypeListLocation CommandType = "list" CommandTypeNone CommandType = "none" )
type Commander ¶
func NewAddCommand ¶
func NewAddCommand(p *plugin) Commander
func NewAskCommand ¶
func NewAskCommand(p *plugin) Commander
func NewChangeCommand ¶
func NewChangeCommand(p *plugin) Commander
func NewListCommand ¶
func NewListCommand(p *plugin) Commander
func NewRemoveCommand ¶
func NewRemoveCommand(p *plugin) Commander
type LocationSorter ¶
type LocationSorter []Location
func (LocationSorter) Len ¶
func (s LocationSorter) Len() int
func (LocationSorter) Less ¶
func (s LocationSorter) Less(i, j int) bool
func (LocationSorter) Swap ¶
func (s LocationSorter) Swap(i, j int)
type LocationStore ¶
type LocationStore struct {
// contains filtered or unexported fields
}
func NewLocationStore ¶
func NewLocationStore(path string) *LocationStore
func (*LocationStore) Del ¶
func (s *LocationStore) Del(name string)
func (*LocationStore) Load ¶
func (s *LocationStore) Load() error
func (*LocationStore) Locations ¶
func (s *LocationStore) Locations() []Location
func (*LocationStore) Save ¶
func (s *LocationStore) Save() error
func (*LocationStore) Set ¶
func (s *LocationStore) Set(loc Location)
type PluginCloser ¶
Click to show internal directories.
Click to hide internal directories.