Versions in this module Expand all Collapse all v1 v1.0.2 Nov 18, 2021 Changes in this version + type Client struct + Corpus *CorpusService + Debug bool + Project *ProjectService + Response *ResponseService + func NewClient(host string, port int) *Client + func (client *Client) Do(r *http.Request, v interface{}) (*Response, error) + func (client *Client) NewRequest(method, urlStr string, body interface{}) (*http.Request, error) + func (client *Client) ParseUrl(uri string) *url.URL + func (client *Client) SetDebug(debug bool) + type Corpus struct + Score float32 + type CorpusService service + type Message struct + Code string + Error string + Message string + Url string + type ProjectService service + func (project ProjectService) AddProject(name, config string) (*bot.Project, error) + func (project ProjectService) GetProjectList() ([]*bot.Project, error) + type Response struct + type ResponseService service + func (response *ResponseService) GetResponse(project, query, context string) (responses *Responses, err error) + type Responses struct + Message string + Question string + Results []*Corpus