Documentation ¶
Index ¶
Constants ¶
View Source
const URL = "http://labx.travelgatex.com:80/search"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DialogFlow ¶
type DialogFlow struct{}
func NewDialog ¶
func NewDialog() *DialogFlow
func (DialogFlow) Convert ¶
func (d DialogFlow) Convert(body io.ReadCloser) (*conversation.Criteria, error)
Convert a read closer into a pkg.Criteria
func (DialogFlow) Send ¶
func (d DialogFlow) Send(criteria *conversation.Criteria) (io.ReadCloser, error)
type OutputContext ¶
type OutputContext struct { Name string `json:"name"` LifespanCount int `json:"lifespanCount"` Parameters Parameters `json:"parameters"` }
type Parameters ¶
type SearchResponse ¶
type SearchResponse struct { FulfillmentText string `json:"fulfillmentText"` OutputContexts []OutputContext `json:"outputContexts"` }
Click to show internal directories.
Click to hide internal directories.