Documentation ¶
Index ¶
- type Command
- type Memory
- func (driver *Memory) Del(key string)
- func (driver *Memory) DelRequest(sid string)
- func (driver *Memory) Get(key string) (Command, bool)
- func (driver *Memory) GetCommands() ([]Command, error)
- func (driver *Memory) GetRequest(sid string) (string, string, bool)
- func (driver *Memory) Match(query query.Param, content string) (string, error)
- func (driver *Memory) Set(key string, cmd Command) error
- func (driver *Memory) SetRequest(sid, id, cid string) error
- type Request
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct { ID string `json:"-" yaml:"-"` Use string `json:"use,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` Args []map[string]interface{} `json:"args,omitempty"` Stack string `json:"stack,omitempty"` Path string `json:"path,omitempty"` }
Command the command struct
type Memory ¶
type Memory struct {
// contains filtered or unexported fields
}
Memory the memory driver
func (*Memory) DelRequest ¶
DelRequest delete the command request
func (*Memory) GetCommands ¶
GetCommands get all commands
func (*Memory) GetRequest ¶
GetRequest get the command request
func (*Memory) SetRequest ¶
SetRequest set the command request
Click to show internal directories.
Click to hide internal directories.