Documentation ¶
Index ¶
- type Dispatch
- type Handler
- type HandlerFunc
- type Robot
- func (r *Robot) Chat() chat.Adapter
- func (r *Robot) Direct(exp string) string
- func (r *Robot) HTTP() *mux.Router
- func (r *Robot) Name() string
- func (r *Robot) Receive(m chat.Message)
- func (r *Robot) Run() error
- func (r *Robot) SetChat(name string) error
- func (r *Robot) SetHTTP(router *mux.Router)
- func (r *Robot) SetName(n string)
- func (r *Robot) SetStore(s store.Store)
- func (r *Robot) Stop()
- func (r *Robot) Store() store.Store
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dispatch ¶ added in v0.3.1
type Dispatch struct {
// contains filtered or unexported fields
}
func NewDispatch ¶ added in v0.3.1
func (*Dispatch) HandleFunc ¶ added in v0.3.1
type HandlerFunc ¶ added in v0.3.1
type HandlerFunc func(*State)
func (HandlerFunc) Handle ¶ added in v0.3.1
func (f HandlerFunc) Handle(s *State)
type Robot ¶
type Robot struct { *Dispatch // contains filtered or unexported fields }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.