Documentation
¶
Index ¶
- type Client
- type Server
- func (s *Server) Answer(question *query.Question) (answers []query.Answer, err error)
- func (s *Server) RESTHandler(w http.ResponseWriter, r *http.Request)
- func (s *Server) Run()
- func (s *Server) SlackHandler(w http.ResponseWriter, r *http.Request)
- func (s *Server) TelegramHandler(w http.ResponseWriter, r *http.Request)
- func (s *Server) TwilioHandler(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶ added in v0.4.0
type Client struct { URL string // contains filtered or unexported fields }
Client allows you to chat with chatto through the REST channel Great for testing or integrating with your own tools
type Server ¶ added in v0.5.1
type Server struct {
// contains filtered or unexported fields
}
Server runs chatto bot
func (*Server) Answer ¶ added in v0.7.0
Answer passes a querty.Question into the bot to produce answers
func (*Server) RESTHandler ¶ added in v0.7.0
func (s *Server) RESTHandler(w http.ResponseWriter, r *http.Request)
RESTHandler passes an incoming http.Request to the REST channel
func (*Server) SlackHandler ¶ added in v0.7.0
func (s *Server) SlackHandler(w http.ResponseWriter, r *http.Request)
SlackHandler passes an incoming http.Request to the Slack channel
func (*Server) TelegramHandler ¶ added in v0.7.0
func (s *Server) TelegramHandler(w http.ResponseWriter, r *http.Request)
TelegramHandler passes an incoming http.Request to the Telegram channel
func (*Server) TwilioHandler ¶ added in v0.7.0
func (s *Server) TwilioHandler(w http.ResponseWriter, r *http.Request)
TwilioHandler passes an incoming http.Request to the Twilio channel
Click to show internal directories.
Click to hide internal directories.