Documentation
¶
Index ¶
Constants ¶
View Source
const Headline = "Low Orbit Ransomware Denial Toolkit (https://github.com/jessehorne/lordt)"
View Source
const Logo = `` /* 165-byte string literal not displayed */
View Source
const Version = "0.0.1"
Variables ¶
View Source
var ( ErrNoArgs = errors.New("no args provided") ErrInvalidCommand = errors.New("invalid command") )
Functions ¶
func HelpCommandHandler ¶
func HelpCommandHandler(ch *CommandHandler, args []string) error
func InitCommands ¶
func InitCommands(ch *CommandHandler)
func NLockCommandHandler ¶
func NLockCommandHandler(ch *CommandHandler, args []string) error
Types ¶
type Command ¶
type Command struct { Name string Desc string Handler func(*CommandHandler, []string) error }
type CommandHandler ¶
func NewCommandHandler ¶
func NewCommandHandler() *CommandHandler
func (*CommandHandler) AddCommand ¶
func (ch *CommandHandler) AddCommand(c *Command)
func (*CommandHandler) Handle ¶
func (ch *CommandHandler) Handle(args []string) error
func (*CommandHandler) RunCommand ¶
func (ch *CommandHandler) RunCommand(short string, args []string) error
Click to show internal directories.
Click to hide internal directories.