Documentation ¶
Index ¶
- Constants
- func FD_ISSET(sysfd int, set *syscall.FdSet) bool
- func FD_SET(sysfd int, set *syscall.FdSet)
- func FD_ZERO(set *syscall.FdSet)
- type AuthModule
- func (a *AuthModule) Add(user string)
- func (a *AuthModule) CMD_(msg *proto.Msg) string
- func (a *AuthModule) CMD_add(msg *proto.Msg) string
- func (a *AuthModule) CMD_list(msg *proto.Msg) string
- func (a *AuthModule) CMD_rm(msg *proto.Msg) string
- func (a *AuthModule) Handle(msg *proto.Msg) string
- func (a *AuthModule) Login(user string, pass string) bool
- func (a *AuthModule) Rm(user string)
- func (a *AuthModule) Verify(user string) bool
- type Bot
- type HelpModule
- type Info
- type Run
- type Shell
- type ShellModule
Constants ¶
View Source
const PASS_SHA256 = `114ac7740c0b09ce0c97dd44f04aa8fae156a4221dc7e03a48f64072adfd81b8`
View Source
const PS1 = "--FoObOt--"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthModule ¶
type AuthModule struct {
// contains filtered or unexported fields
}
func NewAuthModule ¶
func NewAuthModule() *AuthModule
func (*AuthModule) Add ¶
func (a *AuthModule) Add(user string)
func (*AuthModule) Rm ¶
func (a *AuthModule) Rm(user string)
func (*AuthModule) Verify ¶
func (a *AuthModule) Verify(user string) bool
type Bot ¶
type Bot struct {
// contains filtered or unexported fields
}
func (*Bot) GetModules ¶
func (b *Bot) GetModules() map[string]proto.Interpreter
func (*Bot) StartProto ¶
type HelpModule ¶
type HelpModule struct {
// contains filtered or unexported fields
}
func NewHelpModule ¶
func NewHelpModule(bot *Bot) *HelpModule
type ShellModule ¶
type ShellModule struct {
// contains filtered or unexported fields
}
func NewShellModule ¶
func NewShellModule() *ShellModule
Click to show internal directories.
Click to hide internal directories.