package
0.0.0-20180111161057-a7eead206323
Repository: https://github.com/recastai/sdk-golang.git
Documentation: pkg.go.dev

# Functions

NewCard initializes a new card with the specified title It can be used to display informations and images to the user or to ask multiple choice question with actionable buttons.
No description provided by the author
No description provided by the author
NewConnectClient creates a new client with the provided API token.
NewList initializes an empty list with the given title and subtitle.
NewListElement initializes an empty list element with the given title and subtitle.
NewQuickReplies initializes a new QuickReply structure with the specified title.
NewTextMessage returns a new text attachment.
ParseConnectorMessage handles a request coming from BotConnector API.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
ErrTokenNotSet is returned when the token for a client is empty.

# Structs

Action represents a conversation action.
Attachment holds data for both text, picture and video messages attachment := Attachment{ Type: "text", Content: "Hello World", }.
Card holds formats for a generic messaging card for Recast.AI botconnector card := recast.NewCard("Do you like to code?").
CardButton holds data for a button in messaging channels formats.
CardContent holds data for a card in messaging platforms.
Cardinal Recast.AI entity.
No description provided by the author
No description provided by the author
Color Recast.AI entity.
ConnectClient provides an interface to Recast.AI connector service It allows to send message to a particular user and broadcast message to all users of a bot client := recast.ConnectClient{"YOUR_TOKEN"} message := recast.NewTextMessage("Hello") err := client.SendMessage("CONVERSATION_ID", message).
Context holds the information about a conversation context.
Conversation contains the response from the converse endpoint of the API.
ConverseOpts contains options for ConverseText method.
CustomEntity represents a Recast.AI user-defined entity.
Datetime Recast.AI entity.
Dialog contains the response from the /dialog endpoint of the API.
No description provided by the author
DialogOpts contains options for DialogText method.
Distance Recast.AI entity.
Duration Recast.AI entity.
Email Recast.AI entity.
Emoji Recast.AI entity.
Entities holds the entity hashmap returned by a call to Recast.AI Natural Language Processing service.
Intent defines the details which define a single intent.
Interval Recast.AI entity.
Ip Recast.AI entity.
Job Recast.AI entity.
Language Recast.AI entity.
List hold formats for a list of the Recast.AI botconnector.
ListContent holds data for the list content.
ListElement holds data for one list item.
Location Recast.AI entity.
Mass Recast.AI entity.
Message contains data sent by Recast.AI connector.
MessageData contains the Message and messaging informations about the message.
Money Recast.AI entity.
Nationality Recast.AI entity.
Number Recast.AI entity.
Ordinal Recast.AI entity.
Organization Recast.AI entity.
Percent Recast.AI entity.
Person Recast.AI entity.
Phone Recast.AI entity.
Pronoun Recast.AI entity.
QuickReplies holds format for generic quick replies for Recast.AI botconnector It allows the user to quickly choose a response that will be sent back as a text message to the bot quickReplies := recast.NewQuickReplies("Do you like to code?").
QuickRepliesButton holds format for a generic quickreply.
QuickRepliesContent holds data for QuickReplies.
ReqOpts are used to overwrite the client token and language on a per request baises if a user wises to do so.
RequestClient provides an interface to interact with Recast.AI Natural Language Processing API.
Response is the HTTP response from the Recast.AI Natural Language Processing API.
Set Recast.AI entity.
Sort Recast.AI entity.
Speed Recast.AI entity.
Temperature Recast.AI entity.
Url Recast.AI entity.
Volume Recast.AI entity.

# Interfaces

Component interface is used as a marker for the connector message formats All data structure that can be sent as a message has to implement this interface.
MessageHandler is implemented by any element that would like to receive a message.
MessageWriter is the structure allowing you to respond.

# Type aliases

ListButton has the same content as a card button.
MessageHandlerFunc simpler wrapper for function.