Documentation ¶
Index ¶
- type Config
- type Contact
- type HandlerFunc
- type HookFunc
- type Jabot
- func (w *Jabot) AddChat(jid string) error
- func (w *Jabot) Close() error
- func (w *Jabot) Connect() error
- func (w *Jabot) Dail() error
- func (w *Jabot) GetContacts() []Contact
- func (w *Jabot) GetRoster() error
- func (w *Jabot) IsConnected() bool
- func (w *Jabot) Ping() error
- func (c *Jabot) RawIQtime(from, to, id string) error
- func (c *Jabot) RawLast(from, to, id string, last int) error
- func (c *Jabot) RawLastNA(from, to, id string) error
- func (c *Jabot) RawVersion(from, to, id, version, osName string) error
- func (w *Jabot) RegisterHandle(cmd string, cmdFunc HandlerFunc) error
- func (w *Jabot) RegisterHook(hookStr string, hook HookFunc)
- func (w *Jabot) RegisterTimeCmd()
- func (w *Jabot) SendGroupMessage(message string, to string) error
- func (w *Jabot) SendMessage(message string, to string) error
- func (w *Jabot) SetLogLevel(l logging.Level)
- type Menu
- type News
- type Reply
- type Tuling
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Jabot ¶
type Jabot struct {
// contains filtered or unexported fields
}
func NewJabotConn ¶
func NewJabotConn(talk *xmpp.Client) *Jabot
func (*Jabot) GetContacts ¶
func (*Jabot) IsConnected ¶
func (*Jabot) RawVersion ¶
func (*Jabot) RegisterHandle ¶
func (w *Jabot) RegisterHandle(cmd string, cmdFunc HandlerFunc) error
func (*Jabot) RegisterHook ¶
func (*Jabot) RegisterTimeCmd ¶
func (w *Jabot) RegisterTimeCmd()
func (*Jabot) SetLogLevel ¶
func (w *Jabot) SetLogLevel(l logging.Level)
SetLogLevel
logging.Level from github.com/op/go-logging
type News ¶
type News struct { Article string `json:"article"` Source string `json:"source"` Icon string `json:"icon"` DetailURL string `json:"detailurl"` }
tuling
Click to show internal directories.
Click to hide internal directories.